www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/11/16:20:17

From: Michael Goffioul <goffioul AT emic DOT ucl DOT ac DOT be>
Newsgroups: comp.os.msdos.djgpp
Subject: Question about dxe file
Date: Wed, 11 Jun 1997 10:13:08 +0200
Organization: EMIC - UCL
Lines: 44
Message-ID: <339E5E14.8EE@emic.ucl.ac.be>
NNTP-Posting-Host: ns2.emic.ucl.ac.be
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,

I'm trying to make a dxe file which I intend to load in my
application. The test program is very simple :

------------------------------------
#include <stdio.h>

void proc(void)
{
	printf("Hello\n");
}
------------------------------------

when I want to convert it to a dxe file with the command lines :

gcc -c proc.c
dxegen proc.dxe _proc proc.o -lgcc -lc

I get a few unresolved references :
	- without "-lgcc -lc" -> _printf
	- with "-lgcc -lc" -> _main, end, ... (I don't remember)

I try to link almost all librairies in the djgpp/lib directory, I
can't get out of this kind of message.

Any suggestion ?

Thanks.

Michael.


-- 
Michael Goffioul

EMIC - UCL
Batiment Maxwell
Place du Levant, 3
B-1348 Louvain-la-Neuve
Belgium

Tel.: +32 10 47 23 15
Fax.: +32 10 47 87 05

- Raw text -


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