Linker error Undefined symbols for architecture x86_64: usr/bin/g++ -std=c++11 -Wno-deprecated -O2 -g -DNDEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/demo_hyperelasticity.dir/ -o demo_hyperelasticity /Applications/FEniCS.app/Contents/Resources/lib/libdolfin.1.5.0.dylib /usr/lib/libxml2.dylib /Applications/FEniCS.app/Contents/Resources/lib/vtk-5.10/libvtksys.5.10.1.dylib -lobjc -lmÄummy library creation clang++ -dynamiclib -o libfenics_dummy.dylib /Applications/FEniCS.app/Contents/Resources/lib/libdolfin.1.5.0.dylib /usr/lib/libxml2.dylib /Applications/FEniCS.app/Contents/Resources/lib/libboost_filesystem.dylib /Applications/FEniCS.app/Contents/Resources/lib/libboost_program_options.dylib /Applications/FEniCS.app/Contents/Resources/lib/vtk-5.10/libvtksys.5.10.1.dylib -lobjc -lm Hyperelasticity demo /usr/bin/g++ -DBOOST_UBLAS_NDEBUG -std=c++11 -Wno-deprecated -O2 -g -DNDEBUG -isystem /Applications/FEniCS.app/Contents/Resources/include -o CMakeFiles/demo_hyperelasticity.dir/ -c /Users/sensei/Public/hyperelasticity/cpp/main.cpp The details of the steps above are below. It seems as the dummy library won't "pull" the other shared objects. link the hyperelasticity demo with the dummy.create a script to generate a dummy dylib with all prerequisites.use the hyperelasticity demo to take a look at the command line.I'd like to create a Xcode project to develop some code in C++ depending on Fenics, but I'm finding some difficulties in the linker phase.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |