Hi Dario, 
thanks for the help.

i'll try to answer at your question:

i'm using the latest version of Docker Image.
no error has occured compiling chrono,
i pick the template project from /sbel/Desktop/chrono - ther is not other 
template
and the demos work fine.
and 
# This is the CMakeCache file.
# For build in directory: /sbel/Desktop/workspace/my_chrono_project_1/build
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Path to a program.
CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line

//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar

//Choose the type of build, options are: None Debug Release RelWithDebInfo
// MinSizeRel ...
CMAKE_BUILD_TYPE:STRING=Debug;Release;Profile

//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON

//CXX compiler
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++

//A wrapper around 'ar' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-11

//A wrapper around 'ranlib' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-11

//Flags used by the CXX compiler during all build types.
CMAKE_CXX_FLAGS:STRING=

//Flags used by the CXX compiler during DEBUG builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g

//Flags used by the CXX compiler during MINSIZEREL builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the CXX compiler during PROFILE builds.
CMAKE_CXX_FLAGS_PROFILE:STRING=

//Flags used by the CXX compiler during RELEASE builds.
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the CXX compiler during RELWITHDEBINFO builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//C compiler
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc

//A wrapper around 'ar' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-11

//A wrapper around 'ranlib' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-11

//Flags used by the C compiler during all build types.
CMAKE_C_FLAGS:STRING=

//Flags used by the C compiler during DEBUG builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g

//Flags used by the C compiler during MINSIZEREL builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the C compiler during PROFILE builds.
CMAKE_C_FLAGS_PROFILE:STRING=

//Flags used by the C compiler during RELEASE builds.
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the C compiler during RELWITHDEBINFO builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//Path to a program.
CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND

//Flags used by the linker during all build types.
CMAKE_EXE_LINKER_FLAGS:STRING=

//Flags used by the linker during DEBUG builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during MINSIZEREL builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during PROFILE builds.
CMAKE_EXE_LINKER_FLAGS_PROFILE:STRING=

//Flags used by the linker during RELEASE builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during RELWITHDEBINFO builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/sbel/Desktop/workspace/my_chrono_project_1

//Path to a program.
CMAKE_LINKER:FILEPATH=/usr/bin/ld

//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake

//Flags used by the linker during the creation of modules during
// all build types.
CMAKE_MODULE_LINKER_FLAGS:STRING=

//Flags used by the linker during the creation of modules during
// DEBUG builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of modules during
// MINSIZEREL builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of modules during
// PROFILE builds.
CMAKE_MODULE_LINKER_FLAGS_PROFILE:STRING=

//Flags used by the linker during the creation of modules during
// RELEASE builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of modules during
// RELWITHDEBINFO builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_NM:FILEPATH=/usr/bin/nm

//Path to a program.
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy

//Path to a program.
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump

//Value Computed by CMake
CMAKE_PROJECT_DESCRIPTION:STATIC=

//Value Computed by CMake
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=my_project

//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib

//Path to a program.
CMAKE_READELF:FILEPATH=/usr/bin/readelf

//Flags used by the linker during the creation of shared libraries
// during all build types.
CMAKE_SHARED_LINKER_FLAGS:STRING=

//Flags used by the linker during the creation of shared libraries
// during DEBUG builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of shared libraries
// during MINSIZEREL builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of shared libraries
// during PROFILE builds.
CMAKE_SHARED_LINKER_FLAGS_PROFILE:STRING=

//Flags used by the linker during the creation of shared libraries
// during RELEASE builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of shared libraries
// during RELWITHDEBINFO builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO

//Flags used by the linker during the creation of static libraries
// during all build types.
CMAKE_STATIC_LINKER_FLAGS:STRING=

//Flags used by the linker during the creation of static libraries
// during DEBUG builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of static libraries
// during MINSIZEREL builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of static libraries
// during PROFILE builds.
CMAKE_STATIC_LINKER_FLAGS_PROFILE:STRING=

//Flags used by the linker during the creation of static libraries
// during RELEASE builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of static libraries
// during RELWITHDEBINFO builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_STRIP:FILEPATH=/usr/bin/strip

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE

//The directory containing a CMake configuration file for Chrono.
Chrono_DIR:PATH=/usr/local/lib/cmake/Chrono

//Value Computed by CMake
my_project_BINARY_DIR:STATIC=/sbel/Desktop/workspace/my_chrono_project_1/build

//Value Computed by CMake
my_project_IS_TOP_LEVEL:STATIC=ON

//Value Computed by CMake
my_project_SOURCE_DIR:STATIC=/sbel/Desktop/workspace/my_chrono_project_1


########################
# INTERNAL cache entries
########################

//ADVANCED property for variable: CMAKE_ADDR2LINE
CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//MODIFIED property for variable: CMAKE_BUILD_TYPE
CMAKE_BUILD_TYPE-MODIFIED:INTERNAL=ON
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/sbel/Desktop/workspace/my_chrono_project_1/build
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=22
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=1
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR
CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB
CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_PROFILE
CMAKE_CXX_FLAGS_PROFILE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER_AR
CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB
CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_PROFILE
CMAKE_C_FLAGS_PROFILE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_DLLTOOL
CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=/usr/bin/ccmake
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_PROFILE
CMAKE_EXE_LINKER_FLAGS_PROFILE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
//Name of external makefile project generator.
CMAKE_EXTRA_GENERATOR:INTERNAL=
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Generator instance identifier.
CMAKE_GENERATOR_INSTANCE:INTERNAL=
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/sbel/Desktop/workspace/my_chrono_project_1
//MODIFIED property for variable: CMAKE_INSTALL_PREFIX
CMAKE_INSTALL_PREFIX-MODIFIED:INTERNAL=ON
//Install .so files without execute permission.
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_PROFILE
CMAKE_MODULE_LINKER_FLAGS_PROFILE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//Platform information initialized
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_READELF
CMAKE_READELF-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.22
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_PROFILE
CMAKE_SHARED_LINKER_FLAGS_PROFILE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_PROFILE
CMAKE_STATIC_LINKER_FLAGS_PROFILE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//uname command
CMAKE_UNAME:INTERNAL=/usr/bin/uname
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//MODIFIED property for variable: Chrono_DIR
Chrono_DIR-MODIFIED:INTERNAL=ON



On Thursday, December 21, 2023 at 8:00:20 PM UTC+1 [email protected] 
wrote:

> Hi Alessandro,
> Before building the demo did you compile Chrono properly with no errors?
> At which commit is your code?
> Are you using the template_project right?
> Where and when did you pick the template project?
>
> Because for example the ChCollisionModel is not in the collision namespace 
> anymore, thus suggesting that you picked some old version of Chrono and not 
> the one in main.
>
> And/or are your Chrono and your template project coming from same commit?
>
> Can you send us the CMakeCache created in the build folder of your project?
>
> Are the demos coming with Chrono working fine? 
>
>
>
> Dario
>
> -------- Messaggio originale --------
> Da: Alessandro Petrella <[email protected]> 
> Data: 21/12/23 18:58 (GMT+01:00) 
> A: ProjectChrono <[email protected]> 
> Oggetto: [chrono] Error building my_example.cpp 
>
> Hi,
> i'm trying to build a  "my_example.cpp" file, following this guide:
> https://api.projectchrono.org/tutorial_install_project.html
>
> But when i try to "make" the project, this error occurred me:
>  
>
> root@6a250250b222:~/Desktop/workspace/my_chrono_project_1/build# make
> [ 50%] Building CXX object CMakeFiles/my_demo.dir/my_example.cpp.o
> [100%] Linking CXX executable my_demo
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: warning: relocation 
> against `_ZTVN6chrono11ChSystemNSCE' in read-only section 
> `.text._ZN6chrono11ChSystemNSCD2Ev[_ZN6chrono11ChSystemNSCD5Ev]'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function `main':
> my_example.cpp:(.text+0x68): undefined reference to 
> `chrono::SetChronoDataPath(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&)'
> /usr/bin/ld: my_example.cpp:(.text+0x9a): undefined reference to 
> `chrono::ChSystemNSC::ChSystemNSC(bool)'
> /usr/bin/ld: my_example.cpp:(.text+0x17e): undefined reference to 
> `chrono::ChBody::SetBodyFixed(bool)'
> /usr/bin/ld: my_example.cpp:(.text+0x1b0): undefined reference to 
> `chrono::ChSystem::Add(std::shared_ptr<chrono::ChPhysicsItem>)'
> /usr/bin/ld: my_example.cpp:(.text+0x315): undefined reference to 
> `chrono::ChSystem::Add(std::shared_ptr<chrono::ChPhysicsItem>)'
> /usr/bin/ld: my_example.cpp:(.text+0x522): undefined reference to 
> `chrono::ChSystem::Add(std::shared_ptr<chrono::ChPhysicsItem>)'
> /usr/bin/ld: my_example.cpp:(.text+0x55a): undefined reference to 
> `chrono::ChPhysicsItem::GetVisualShape(unsigned int) const'
> /usr/bin/ld: my_example.cpp:(.text+0x5a7): undefined reference to 
> `chrono::ChVisualShape::SetColor(chrono::ChColor const&)'
> /usr/bin/ld: my_example.cpp:(.text+0x5df): undefined reference to 
> `chrono::ChPhysicsItem::GetVisualShape(unsigned int) const'
> /usr/bin/ld: my_example.cpp:(.text+0x639): undefined reference to 
> `chrono::GetChronoDataFile(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&)'
> /usr/bin/ld: my_example.cpp:(.text+0x65d): undefined reference to 
> `chrono::ChVisualShape::SetTexture(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, float, float)'
> /usr/bin/ld: my_example.cpp:(.text+0x6a8): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::ChVisualSystemIrrlicht()'
> /usr/bin/ld: my_example.cpp:(.text+0x6c1): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::SetWindowSize(unsigned int, 
> unsigned int)'
> /usr/bin/ld: my_example.cpp:(.text+0x709): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::SetWindowTitle(std::__cxx11::basic_string<char,
>  
> std::char_traits<char>, std::allocator<char> > const&)'
> /usr/bin/ld: my_example.cpp:(.text+0x736): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::Initialize()'
> /usr/bin/ld: my_example.cpp:(.text+0x77e): undefined reference to 
> `chrono::GetChronoDataFile(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&)'
> /usr/bin/ld: my_example.cpp:(.text+0x797): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::AddLogo(std::__cxx11::basic_string<char,
>  
> std::char_traits<char>, std::allocator<char> > const&)'
> /usr/bin/ld: my_example.cpp:(.text+0x80c): undefined reference to 
> `chrono::GetChronoDataFile(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&)'
> /usr/bin/ld: my_example.cpp:(.text+0x825): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::AddSkyBox(std::__cxx11::basic_string<char,
>  
> std::char_traits<char>, std::allocator<char> > const&)'
> /usr/bin/ld: my_example.cpp:(.text+0x861): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::AddTypicalLights()'
> /usr/bin/ld: my_example.cpp:(.text+0x8df): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::AddCamera(chrono::ChVector<double> 
> const&, chrono::ChVector<double>)'
> /usr/bin/ld: my_example.cpp:(.text+0x8f8): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::AttachSystem(chrono::ChSystem*)'
> /usr/bin/ld: my_example.cpp:(.text+0x928): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::BeginScene()'
> /usr/bin/ld: my_example.cpp:(.text+0x937): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::Render()'
> /usr/bin/ld: my_example.cpp:(.text+0x946): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::EndScene()'
> /usr/bin/ld: my_example.cpp:(.text+0x961): undefined reference to 
> `chrono::ChSystem::DoStepDynamics(double)'
> /usr/bin/ld: my_example.cpp:(.text+0x98b): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::Run()'
> /usr/bin/ld: my_example.cpp:(.text+0x9a3): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::~ChVisualSystemIrrlicht()'
> /usr/bin/ld: my_example.cpp:(.text+0xc31): undefined reference to 
> `chrono::irrlicht::ChVisualSystemIrrlicht::~ChVisualSystemIrrlicht()'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function 
> `chrono::ChClassFactory::IsClassRegistered(std::__cxx11::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&)':
> my_example.cpp:(.text._ZN6chrono14ChClassFactory17IsClassRegisteredERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6chrono14ChClassFactory17IsClassRegisteredERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x11):
>  
> undefined reference to `chrono::ChClassFactory::GetGlobalClassFactory()'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function 
> `chrono::ChClassFactory::IsClassRegistered(std::type_index const&)':
> my_example.cpp:(.text._ZN6chrono14ChClassFactory17IsClassRegisteredERKSt10type_index[_ZN6chrono14ChClassFactory17IsClassRegisteredERKSt10type_index]+0x11):
>  
> undefined reference to `chrono::ChClassFactory::GetGlobalClassFactory()'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function 
> `chrono::ChClassFactory::GetClassTagName[abi:cxx11](std::type_index 
> const&)':
> my_example.cpp:(.text._ZN6chrono14ChClassFactory15GetClassTagNameB5cxx11ERKSt10type_index[_ZN6chrono14ChClassFactory15GetClassTagNameB5cxx11ERKSt10type_index]+0x11):
>  
> undefined reference to `chrono::ChClassFactory::GetGlobalClassFactory()'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function 
> `chrono::ChSystemNSC::~ChSystemNSC()':
> my_example.cpp:(.text._ZN6chrono11ChSystemNSCD2Ev[_ZN6chrono11ChSystemNSCD5Ev]+0x13):
>  
> undefined reference to `vtable for chrono::ChSystemNSC'
> /usr/bin/ld: 
> my_example.cpp:(.text._ZN6chrono11ChSystemNSCD2Ev[_ZN6chrono11ChSystemNSCD5Ev]+0x26):
>  
> undefined reference to `chrono::ChSystem::~ChSystem()'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function `void 
> __gnu_cxx::new_allocator<chrono::ChBodyEasyBox>::construct<chrono::ChBodyEasyBox,
>  
> int, int, int, int, bool, bool>(chrono::ChBodyEasyBox*, int&&, int&&, 
> int&&, int&&, bool&&, bool&&)':
> my_example.cpp:(.text._ZN9__gnu_cxx13new_allocatorIN6chrono13ChBodyEasyBoxEE9constructIS2_JiiiibbEEEvPT_DpOT0_[_ZN9__gnu_cxx13new_allocatorIN6chrono13ChBodyEasyBoxEE9constructIS2_JiiiibbEEEvPT_DpOT0_]+0x18d):
>  
> undefined reference to `chrono::ChBodyEasyBox::ChBodyEasyBox(double, 
> double, double, double, bool, bool, 
> std::shared_ptr<chrono::ChMaterialSurface>, 
> std::shared_ptr<chrono::collision::ChCollisionModel>)'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function `void 
> __gnu_cxx::new_allocator<chrono::ChBodyEasyBox>::construct<chrono::ChBodyEasyBox,
>  
> double, int, double, int, bool, bool>(chrono::ChBodyEasyBox*, double&&, 
> int&&, double&&, int&&, bool&&, bool&&)':
> my_example.cpp:(.text._ZN9__gnu_cxx13new_allocatorIN6chrono13ChBodyEasyBoxEE9constructIS2_JdidibbEEEvPT_DpOT0_[_ZN9__gnu_cxx13new_allocatorIN6chrono13ChBodyEasyBoxEE9constructIS2_JdidibbEEEvPT_DpOT0_]+0x183):
>  
> undefined reference to `chrono::ChBodyEasyBox::ChBodyEasyBox(double, 
> double, double, double, bool, bool, 
> std::shared_ptr<chrono::ChMaterialSurface>, 
> std::shared_ptr<chrono::collision::ChCollisionModel>)'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function `void 
> __gnu_cxx::new_allocator<chrono::ChLinkMateGeneric>::construct<chrono::ChLinkMateGeneric,
>  
> bool, bool, bool, bool, bool, bool>(chrono::ChLinkMateGeneric*, bool&&, 
> bool&&, bool&&, bool&&, bool&&, bool&&)':
> my_example.cpp:(.text._ZN9__gnu_cxx13new_allocatorIN6chrono17ChLinkMateGenericEE9constructIS2_JbbbbbbEEEvPT_DpOT0_[_ZN9__gnu_cxx13new_allocatorIN6chrono17ChLinkMateGenericEE9constructIS2_JbbbbbbEEEvPT_DpOT0_]+0xd3):
>  
> undefined reference to `chrono::ChLinkMateGeneric::ChLinkMateGeneric(bool, 
> bool, bool, bool, bool, bool)'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function `void 
> __gnu_cxx::new_allocator<chrono::collision::ChCollisionModelBullet>::construct<chrono::collision::ChCollisionModelBullet>(chrono::collision::ChCollisionModelBullet*)':
> my_example.cpp:(.text._ZN9__gnu_cxx13new_allocatorIN6chrono9collision22ChCollisionModelBulletEE9constructIS3_JEEEvPT_DpOT0_[_ZN9__gnu_cxx13new_allocatorIN6chrono9collision22ChCollisionModelBulletEE9constructIS3_JEEEvPT_DpOT0_]+0x31):
>  
> undefined reference to 
> `chrono::collision::ChCollisionModelBullet::ChCollisionModelBullet()'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function `void 
> chrono::ChClassFactory::archive_out<chrono::ChCoordsys<double> 
> >(std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> > const&, chrono::ChArchiveOut&, 
> chrono::ChCoordsys<double>*)':
> my_example.cpp:(.text._ZN6chrono14ChClassFactory11archive_outINS_10ChCoordsysIdEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_12ChArchiveOutEPT_[_ZN6chrono14ChClassFactory11archive_outINS_10ChCoordsysIdEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_12ChArchiveOutEPT_]+0x1a):
>  
> undefined reference to `chrono::ChClassFactory::GetGlobalClassFactory()'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function `void 
> chrono::ChClassFactory::archive_out_constructor<chrono::ChCoordsys<double> 
> >(std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> > const&, chrono::ChArchiveOut&, 
> chrono::ChCoordsys<double>*)':
> my_example.cpp:(.text._ZN6chrono14ChClassFactory23archive_out_constructorINS_10ChCoordsysIdEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_12ChArchiveOutEPT_[_ZN6chrono14ChClassFactory23archive_out_constructorINS_10ChCoordsysIdEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_12ChArchiveOutEPT_]+0x1a):
>  
> undefined reference to `chrono::ChClassFactory::GetGlobalClassFactory()'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function `void 
> chrono::ChClassFactory::archive_in<chrono::ChQuaternion<double> 
> >(std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> > const&, chrono::ChArchiveIn&, 
> chrono::ChQuaternion<double>*)':
> my_example.cpp:(.text._ZN6chrono14ChClassFactory10archive_inINS_12ChQuaternionIdEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_11ChArchiveInEPT_[_ZN6chrono14ChClassFactory10archive_inINS_12ChQuaternionIdEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_11ChArchiveInEPT_]+0x1a):
>  
> undefined reference to `chrono::ChClassFactory::GetGlobalClassFactory()'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function `void 
> chrono::ChClassFactory::archive_in<chrono::ChVector<double> 
> >(std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> > const&, chrono::ChArchiveIn&, 
> chrono::ChVector<double>*)':
> my_example.cpp:(.text._ZN6chrono14ChClassFactory10archive_inINS_8ChVectorIdEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_11ChArchiveInEPT_[_ZN6chrono14ChClassFactory10archive_inINS_8ChVectorIdEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_11ChArchiveInEPT_]+0x1a):
>  
> undefined reference to `chrono::ChClassFactory::GetGlobalClassFactory()'
> /usr/bin/ld: CMakeFiles/my_demo.dir/my_example.cpp.o: in function `void 
> chrono::ChClassFactory::archive_in<chrono::ChCoordsys<double> 
> >(std::__cxx11::basic_string<char, std::char_traits<char>, 
> std::allocator<char> > const&, chrono::ChArchiveIn&, 
> chrono::ChCoordsys<double>*)':
> my_example.cpp:(.text._ZN6chrono14ChClassFactory10archive_inINS_10ChCoordsysIdEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_11ChArchiveInEPT_[_ZN6chrono14ChClassFactory10archive_inINS_10ChCoordsysIdEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_11ChArchiveInEPT_]+0x1a):
>  
> undefined reference to `chrono::ChClassFactory::GetGlobalClassFactory()'
> /usr/bin/ld: 
> CMakeFiles/my_demo.dir/my_example.cpp.o:my_example.cpp:(.text._ZN6chrono14ChClassFactory11archive_outINS_12ChQuaternionIdEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_12ChArchiveOutEPT_[_ZN6chrono14ChClassFactory11archive_outINS_12ChQuaternionIdEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_12ChArchiveOutEPT_]+0x1a):
>  
> more undefined references to 
> `chrono::ChClassFactory::GetGlobalClassFactory()' follow
> /usr/bin/ld: warning: creating DT_TEXTREL in a PIE
> collect2: error: ld returned 1 exit status
> make[2]: *** [CMakeFiles/my_demo.dir/build.make:99: my_demo] Error 1
> make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/my_demo.dir/all] Error 2
> make: *** [Makefile:91: all] Error 2
>
>
> thanks for the help
> AP
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "ProjectChrono" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/projectchrono/4236ecaf-75b6-4100-a861-d07fa7dc89dan%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/projectchrono/4236ecaf-75b6-4100-a861-d07fa7dc89dan%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/b623cd91-8ea1-410d-8616-035dcccc9d15n%40googlegroups.com.

Reply via email to