Forum

Ghost linker errors

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Ghost linker errors

Postby Mexicouger » Mon Mar 07, 2011 4:38 am

I have been working with Darkplaces, and I was able to Compile. it seems that after I close msvc or Dev c++, and reopen, then compile, I get a swarm Of linker errors. But When I start fresh again, and copy over my code progress, it compiles just fine. There is No errors, and a few unused int warnings, but nothing that would cause Link problems.

Any ideas? This is getting pretty annoying...
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

Postby mankrip » Mon Mar 07, 2011 7:22 am

Every time you edit a header file, delete all .o files before compiling the code again (this is called "cleaning").
Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
Dev blog / Twitter / YouTube
User avatar
mankrip
 
Posts: 915
Joined: Fri Jul 04, 2008 3:02 am

Postby Mexicouger » Mon Mar 07, 2011 2:53 pm

I cleaned it, and it didn't fix the problem. There are still linker errors. There is alot that say like u8_xxx. Like...

u8_strpad
u8_encodech
u8_fromchar

etc...
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

Postby Baker » Mon Mar 07, 2011 4:16 pm

My understanding is that the "correct" way to compile DarkPlaces is type going to the command line (Start -> Run -> cmd.exe) and switching to the DarkPlaces folder and typing "make".

This brings up a big menu of DarkPlaces compiling options.

In the past, I have never had a problem of compiling DarkPlaces with MSVC6 but I have not tried to compile very recent DarkPlaces.

DarkPlaces binaries are generally compiled on Linux for Windows via cross-compilers if I understand this correctly. I'm guessing this is the MinGW compiler.
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby Sajt » Mon Mar 07, 2011 4:22 pm

It sounds like whatever project file you're using is out of date. The u8_* functions are defined in utf8lib.c. If you're using MSVC6, that project file probably isn't kept up to date very zealously.

And what do you mean when you say "starting fresh again"? You mean with a clean svn checkout?
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Postby mh » Mon Mar 07, 2011 4:38 pm

I've compiled recent versions of DP using MSVC++ 2008 Express without any trouble at all. You literally just load it up, hit Ctrl-Shift-B, and a few minutes later there it is. It's a long long long time since I've used earlier versions of MSVC, and if you're still using 6 you really should move up.

Dev-C++ is a load of crap, by the way. Why you shouldn’t use Dev-C++
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby Mexicouger » Mon Mar 07, 2011 11:20 pm

What I mean by starting fresh again, Is taking the DP source(no modified changes), and compiling it, and re-adding my changes.

I used to be able to compile on Dev c++ just fine. Now I am getting the linker errors. The linker errors show up on MSVC 08 as well. my Version says Microsoft visual c++ 2008 express edition.

I got my DP source from this place:

http://icculus.org/twilight/darkplaces/
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

Postby Baker » Tue Mar 08, 2011 2:32 am

Mexicouger wrote:I used to be able to compile on Dev c++ just fine. Now I am getting the linker errors.


Mexicouger wrote:http://icculus.org/twilight/darkplaces/


Problem Exists Between Keyboard And Chair?
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest