cannot find -lnewton

Gillian_Seed

06-07-2008 11:39:16

Hi,


I've just succesfully compiled the "OgreNewt_Main" project, and I got a fresh new "libOgreNewt_Main.a" file in OgreNewt's lib directory.
(actually, I had to add "#include <stddef.h>" in order to make Newton compile, because, otherwise, I got an "undefined size_t type" error)


I use CodeBlocks, and I've configured the relevant paths to CodeBlocks' settings (for .h, for .lib, and for the resulting .a), but, actually I can't run the OgreNewt's demos, because I got the following error at the end of the successful compilations (demo1 and demo2) :
"cannot find -lnewton"

In the linker settings, I link OgreNewt before Newton, and I also tried the other way, but none of these settings work.


So I got 2 questions :

1) What's the problem with the linker, since I set the relevant path to "newton.lib", in CodeBlocks ?

2) for my project, what is the Newton lib do I have to choose among those in Newton SDK's numerous directories (dll, dll_double, lib_mt, lib_mt_double, lib_st, and lib_st_double) ???


Thanks a lot for your answers !

walaber

06-07-2008 15:04:22

"dll" is the standard, 32-bit DLL
"dll_double" is the 64-bit DLL

the others are variations on 32 and 64 bit, and single and multi-threaded, all of which are statically linked. by default, OgreNewt links to the standard "dll" version, so you will need to link your application to that version, and include the newton.dll file as well with your application.

if you want to use another version, you would need to recompile OgreNewt as well.

Gillian_Seed

06-07-2008 15:13:38

Thank you for your reply, walaber !


Actually, I link OgreNewt before Newton (standard 32-bit DLL), but I still have the following error "cannot find -lnewton", when I try to compile OgreNewt's demos.

So, I've just tried to copy/paste the standard DLL in many directories (OgreNewt main dir, OgreNewt's 1st demo dir, Ogre's bin dir, ...) but it didn't change anything.

So, walaber, do you have any idea about the "cannot find -lnewton" error ?


Thanks again !

untitled

15-02-2010 08:09:17

I've got the same problem. Trying to compile with CodeBlocks using mingw, on windows 32bit.