delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/09/10:23:10

Message-ID: <357D4529.69A8@albany.net>
Date: Tue, 09 Jun 1998 10:22:33 -0400
From: James Walton <miti AT albany DOT net>
Reply-To: miti AT albany DOT net
Organization: Mohawk Innovative Technology,
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: ld.exe problems

I have recently downloaded your djgpp compiler as well as the allegro
plug-in.  I have been programming previously with MSVC++ but only for
its code editing and compiling purposes.  The problem is that now it
seems your compiler has problems with some code that should work.  So I
decided to code a very simple program to see if the compiler worked at
all.  And I got the following error:
D:\DJGPP\BIN/ld.exe cannot open -lstdcxx: no such file or directory
(ENOENT)

DJGPP is installed on my D: drive and the environment is set up
correctly since it did attempt to compile.  Any suggestions are
welcome.  Please add my name to the reply line so thi answer will get to
me.

Jamie Walton

#include <iostream.h>
#include <allegro.h>

int main()
{
	allegro_init();
	set_gfx_mode(GFX_AUTODETECT,640,480,0,0);
	
	int white=makecol(255,255,255);
	int blue=makecol(0,0,255);

	int x=50;
	int y=50;
	int r=10;

	clear_to_color(screen,white);
	circlefill(screen,x,y,r,blue);
	allegro_exit();

	cout<<"End of sample program"<<endl;
}

- Raw text -


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