X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-Id: <200405130450.i4D4oGfA022126@delorie.com> Date: Wed, 12 May 2004 21:50:00 -0700 From: X-MB-Message-Source: WebUI X-MB-Message-Type: User Subject: Undefined reference to __alloca Content-Type: text/plain; charset="us-ascii"; format=flowed MIME-Version: 1.0 To: djgpp AT delorie DOT com X-Priority: 3 I get the following linker error when I run make game.exe: cd d:/research/2004/djgpp-game/ make game.exe c:/djgpp/bin/gpp.exe game.o -o .exe -lstdcxx -lm game.o(.text+0x3b):game.cc: undefined reference to `__alloca' collect2: ld returned 1 exit status make: *** [game.exe] Error 1 Here is my Makefile: BIN=c:/djgpp/bin %.run: %.exe ./$*.exe game.exe: game.o $(BIN)/gpp.exe $^ -o $*.exe Here is the file that I am trying to link: (game.cc) #include using namespace std; int main() { cout << "Welcome to game.exe!\n"; } This problem did NOT exist with an earlier version of Djgpp that I had installed. The problem only became evident after I installed the following zip files: bnu214b.zip djdev203.zip faq230b.zip gcc333b.zip gpp333b.zip mak3791b.zip txi47b.zip I have read the Djgpp FAQ and it doesn't mention my problem. Please help me to fix the linker error! ---------------------------------------------- Mailblocks - A Better Way to Do Email http://about.mailblocks.com/info