2

I have four files which are developed for the user code of Star-ccm+: main.cpp, uclib.cpp, uclib.h, UserFunctions.lib The header file is included in the .cpp files. Now, I must link these files together to create a .so file. I tried the following code but it's useful just for the creation of a .so file out of a .cpp file, not linking different files together: g++ -fPIC -shared *.cpp -o libuser.so Please let me know how can I do that?

0 Answers0