Request Beginners Guide to Chipmunk and Code::Blocks

Official forum for the Chipmunk2D Physics Library.

Request Beginners Guide to Chipmunk and Code::Blocks

Postby datCloud » Sun Jun 26, 2016 9:11 pm

Hey, guys.

Sorry if i cant place this topic here.
Like any other beginner programmer im looking for physics libs and stuff in C and found Chipmunk!
The problem is:
I've already search in this forum for some tutorials and found this:
and this

i've tried and tried and even no success.

I've got errors like undefined reference to 'cpCheckPointGreater' and some others like that.

Please, someone could do a Step-by-step with images or a video teaching how to use, from the zero, Chipmunk with Code::Blocks.

Thx in advance and sorry for something
Posts: 1
Joined: Tue Jun 14, 2016 9:17 pm

Re: Request Beginners Guide to Chipmunk and Code::Blocks

Postby slembcke » Sun Jun 26, 2016 11:23 pm

I don't hear people talk about Code::blocks much, and I'm not sure I've ever met anybody who has to talk about it.

That said, the problem you are having is not really Chipmunk related. It's a linker error. The headers (.h) files are used by the compiler to tell it how to generate code that calls a library's code. Then the linker takes all the code it compiled and combines it together. The library itself is separate. (.a, .so, .dylib, .dll depending on system and library type) If you don't tell it to link against a library you are using then it won't be able to find the addresses for the functions and variables (symbols) you referenced in the code generated by the compiler.

How you specify that in Code::Blocks, I don't know, but it gives you something to Google for.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! ->
User avatar
Site Admin
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Return to Chipmunk2D Physics

Who is online

Users browsing this forum: No registered users and 1 guest