Horde3D

Next-Generation Graphics Engine
It is currently 12.05.2024, 20:11

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Horde and VC 2008
PostPosted: 11.03.2008, 00:20 
Offline

Joined: 11.03.2008, 00:17
Posts: 6
Location: United Kingdom
Hi,

A quick question, how can I recompile Horde with Visual Studio 2008 ?
when I try to compile it, here is an error:
1>(F = file, D = directory)? Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."

Any help much appreciated!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 11.03.2008, 01:03 
Offline

Joined: 11.03.2008, 00:17
Posts: 6
Location: United Kingdom
Nevermind, fixed that:)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 11.03.2008, 14:02 
Offline

Joined: 11.03.2008, 00:17
Posts: 6
Location: United Kingdom
Hey, another quick question, what is causing this?
error LNK2028: unresolved token (0A00000F) "extern "C" bool __cdecl setLightParam(unsigned int,enum LightNodeParams::List,float)" (?setLightParam@@$$J0YA_NIW4List@LightNodeParams@@M@Z) referenced in function "private: void __clrcall Mist::Form1::Form1_Load(class System::Object ^,class System::EventArgs ^)" (?Form1_Load@Form1@Mist@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 12.03.2008, 00:53 
Offline

Joined: 08.11.2006, 03:10
Posts: 384
Location: Australia
You probably need to add Horde's lib file as a dependency in project properties->linker->input (or at least that's what it's called in VS 2003)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 13.03.2008, 17:26 
Offline

Joined: 11.03.2008, 00:17
Posts: 6
Location: United Kingdom
I was getting all those errors because I was compiling in /MT mode,
but when I switched to /MD mode, everything compiled fine.

Here are the errors I get when in /MT mode:
3>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
3>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

I apologize if it isn't really relevant to the forum but any help would be greatly apreciated!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 14.03.2008, 16:00 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Linking should also work using the /MT option. I have tried it in Visual Studio 2008 Express and had no problems, except that it couldn't use the precompiled GLFW lib in release mode. We are using the the DLL version of GLFW instead now so I hope this is also solved now.

The "errors" you mention are just warnings and can usually be ignored.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 14.03.2008, 23:51 
Offline

Joined: 11.03.2008, 00:17
Posts: 6
Location: United Kingdom
those are the warnings before the errors themselves, I get "earlier declaration" errors after that

P.S.
got it fixed:
if anyone else is having the same problems, look at the libraries that is used by your compiler.
P.S.S.
I removed a couple I wasn't referencing to and it all worked fine

Cheers!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group