🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Which files to compile in linux for particle replacement tutorial?

User: "satri"
Altair Community Member
Updated by satri

Hello 

I am trying to run an edem simulation on linux i have an API of particle replacement tutorial to get a ".so" file

I tried to compile all files but i kept getting errors when I do this (I have made sure all the lines are in one line so that i can compile and generate a ".so" file)

g++ -g -std=c++11 -O2 -shared -fPIC

-I/DEM/altair/EDEM/src/Api/Factories/

-I/DEM/altair/EDEM/src/Api/ParticleBodyForce/

-I/DEM/altair/EDEM/src/Api/Core/

-I/DEM/altair/EDEM/src/Misc/

CCustomParticleBodyForce.h CParticleList.h CRemoval.cpp CRemoval.h CReplacementFactory.cpp CReplacementFactory.h Removal.cpp ReplacementFactory.cpp -o Project1.so

But when i do this i get the ".so" file


g++ -g -std=c++11 -O2 -shared -fPIC

-I/DEM/altair/EDEM/src/Api/Factories/

-I/DEM/altair/EDEM/src/Api/ParticleBodyForce/

-I/DEM/altair/EDEM/src/Api/Core/

-I/DEM/altair/EDEM/src/Misc/

Removal.cpp CRemoval.cpp -o Project1.so

But when i run the simulation this does not work. Note I do not have any problems in logic because the entire simulation runs without any problem in windows

Please tell me what is the mistake here and how do i know what files to compile in Linux because windows automatically takes care of all the files on visual studio 

Find more posts tagged with