Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Box2D + DarkGDK

Author
Message
zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 23rd Dec 2008 14:36
Hey i was wondering if anyone tried to use Box2D with DarkGDK, and if so did they have any success?
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 23rd Dec 2008 15:12
Do you how to make a 2D box?



zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 23rd Dec 2008 15:28
I was talking about the Box2D Physics Engine )! I get the following error when i try to create a world:

My code si the following:

And yes i have added the following folders in VC++ Directory:
Include, Library and SOurce ! But still.. i can't compile
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 23rd Dec 2008 17:18
Quote: "Do you how to make a 2D box? "




Anyways, are you linking to the Box2D lib either in the project options or with #pragma comment?

zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 23rd Dec 2008 17:53
Project options
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 23rd Dec 2008 18:43 Edited at: 23rd Dec 2008 18:45
Sorry, 'Options' might not have been the best word for that. In VC++ click 'Project', then click the option that says '[Project Name] Properties'. A window should come up that says 'Common Properties' and 'Configuration Properties' on the left side. Click on 'Configuration Properties', then click on 'Linker', then 'Input'. There should be a box that says 'Additional Dependencies'. In order to link with the Box2d lib you have to put 'Box2D.lib' in that box.

Alternatively, you can do what I do which is just add:



into your source code under the #include statements.

zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 23rd Dec 2008 19:11
Tried that and gaved me the following error:

Btw the lib name is Box2d_d.lib.. Any ideas what to try next?
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 23rd Dec 2008 22:19
Hmmm...are there any other .lib files that you may need to link to?

zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 23rd Dec 2008 22:40
Found the problem! When i first compiled the library i compiled it in Debug mode, and not in the release mode! That was the problem! Everything works now whippi! Thanks for your help AndrewT! Cheers mate
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 24th Dec 2008 00:31
Glad you solved the problem.

Login to post a reply

Server time is: 2024-11-25 09:38:28
Your offset time is: 2024-11-25 09:38:28