How to link new code files?

User avatar
Krisi
Member
 
Posts: 41
Joined: Sat Oct 15, 2011 21:32

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
 

kahrl
Member
 
Posts: 236
Joined: Fri Sep 02, 2011 07:51

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 Minetest Engine

Who is online

Users browsing this forum: No registered users and 2 guests

cron