delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/25/17:38:57

From: Scarius <bkopena AT erols DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Weird linking errors (long)
Date: Tue, 25 Mar 1997 13:22:50 -0500
Organization: Weasel Works
Message-ID: <333817FA.77BB@erols.com>
NNTP-Posting-Host: phd-as2s39.erols.com
Mime-Version: 1.0
Lines: 24
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

This morning (Tuesday, the 25th), my latest project stopped linking. All
the files in the project compile okay, but when it starts to create the
exe, thousands of bugs appear. The first 2 errors are something like:
"could not find entry point, substituing (some hex address)"
"undefined function "__main" in grass.c" <- grass.c being the main source
code file, with main() in it.

It then goes on to list all sorts of errors. It stopped recognizing all
standard stuff (printf, malloc, stderr, etc, everything).

At one point the __compiler__ generated a general protection fault. The
only idea I had was that it was getting stuck in a loop including things,
file 1 includes file 2, file 2 includes file 1, and on they go. However,
I can't find any instance of that happening, and most of the files check
to see if they've already been included (with #ifndef and #define).

So, anyone have any ideas?

FYI, I'm using RHIDE and the program is in C, not C++. Allegro is also
being used, and my source code is spread across lots of files (maybe 10
or so C files, nearly that many header files). It was working perfectly
earlier this morning and last night.

Thanks for any help.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019