How to link new code files?

For people working on the C++ code.
User avatar
Posts: 41
Joined: Sat Oct 15, 2011 21:32
Location: Germany

How to link new code files?

by Krisi » Wed Feb 22, 2012 21:27

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.
3D Player in Minetest?! - New GUI and more graphic options
"Lets do this..." Ghost Riley
Linux needs a good ego-shooter!!...
Sorry for my bad english

Posts: 236
Joined: Fri Sep 02, 2011 07:51
Location: Rös̓̇chenhof

by kahrl » Sun Feb 26, 2012 04:31

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.

Return to Partly official engine development

Who is online

Users browsing this forum: No registered users and 1 guest