Page 1 of 1

How to link new code files?

PostPosted: Wed Feb 22, 2012 21:27
by Krisi
What i must do/how i can link new code files? Because i get always a "undefined reference to 'bblababaClass()’" error when i use classes from self written code files.

PostPosted: Sun Feb 26, 2012 04:31
by kahrl
Don't know if this is still relevant but add the cpp file to common_SRCS in src/CMakeLists.txt, or minetest_SRCS if it's only needed on the client.