delorie.com/archives/browse.cgi | search |
From: | Couperin <f DOT couperin AT online DOT fr> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: GRX23 configuration : help needed |
Message-ID: | <394b9277.6362721@news.free.fr> |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1000615113330 DOT 11632U AT is> |
X-Newsreader: | Forte Free Agent 1.21/32.243 |
Lines: | 87 |
Date: | Sat, 17 Jun 2000 14:57:34 GMT |
NNTP-Posting-Host: | 212.27.52.228 |
X-Complaints-To: | abuse AT proxad DOT net |
X-Trace: | nnrp5.proxad.net 961253854 212.27.52.228 (Sat, 17 Jun 2000 16:57:34 CEST) |
NNTP-Posting-Date: | Sat, 17 Jun 2000 16:57:34 CEST |
Organization: | Guest of ProXad - France |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Thu, 15 Jun 2000 11:33:49 +0300 (IDT), Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote: >> C:\djgpp\travail>gcc -o circtest.exe circtest.c {that is my command} > >This is wrong: you need to append -lgrx20 or -lgrx23 (depending on >what is the library name) to this command line. >[...] You are right. It's -lgrx20 (even with GRX23). I know now that I have no problems with GRX23 : I can compile all the demo programs with this command. But... I'm still having linking problems with BCC2GRX and BGI2GRX. I spend a long time wandering through FAQs and Info files, and trying to change parameters in my configuration (I restored the djgpp.djl file in DJGPP\lib\, because it seems I need it) : no results ! I can compile all the BCC2GRX demo files except one : bccbgi.c : My command : gcc -o bccbgi.exe bccbgi.c -lbcc2 -lgrx20 The result : c:/djgpp/tmp\cccyfwgg(.text+0x656):bccbgi.c: undefined reference to `setrgbdefaults' c:/djgpp/tmp\cccyfwgg(.text+0x19e6):bccbgi.c: undefined reference to `_ega_color' c:/djgpp/tmp\cccyfwgg(.text+0x1ab0):bccbgi.c: undefined reference to `_ega_color' c:/djgpp/tmp\cccyfwgg(.text+0x2060):bccbgi.c: undefined reference to `_ega_color' c:/djgpp/tmp\cccyfwgg(.text+0x216b):bccbgi.c: undefined reference to `_ega_color' c:/djgpp/tmp\cccyfwgg(.text+0x224e):bccbgi.c: undefined reference to `_ega_color' c:/djgpp/tmp\cccyfwgg(.text+0x2343):bccbgi.c: more undefined references to `_ega_color' follow c:/djgpp/tmp\cccyfwgg(.text+0x5c82):bccbgi.c: undefined reference to `_dac_g256' c:/djgpp/tmp\cccyfwgg(.text+0x5cb8):bccbgi.c: undefined reference to `_dac_g256' c:/djgpp/tmp\cccyfwgg(.text+0x5cf0):bccbgi.c: undefined reference to `_dac_g256' c:/djgpp/tmp\cccyfwgg(.text+0x5d64):bccbgi.c: undefined reference to `setrgbdefaults' c:/djgpp/tmp\cccyfwgg(.text+0x6211):bccbgi.c: undefined reference to `_ega_color' c:/djgpp/tmp\cccyfwgg(.text+0x650c):bccbgi.c: undefined reference to `_ega_color' c:/djgpp/tmp\cccyfwgg(.text+0x6755):bccbgi.c: undefined reference to `_ega_color' c:/djgpp/tmp\cccyfwgg(.text+0x6971):bccbgi.c: undefined reference to `_ega_color' With BGI2GRX, I always have the same messages when I run make_all.bat (to compile demo files) : C:\DJGPP\travail>call gpcbgi modelist --automake C:\DJGPP\travail>gpc modelist.pas -omodelist -lbcc2 -lgrx20 --automake c:/djgpp/tmp\cceaaaaa(.text+0xb7):modelist.pas: undefined reference to `Installuserdriver' c:/djgpp/tmp\cceaaaaa(.text+0x147):modelist.pas: undefined reference to `Initgraph' c:/djgpp/tmp\cceaaaaa(.text+0x152):modelist.pas: undefined reference to `Graphresult' c:/djgpp/tmp\cceaaaaa(.text+0x16b):modelist.pas: undefined reference to `Closegraph' c:/djgpp/tmp\cceaaaaa(.text+0x170):modelist.pas: undefined reference to `Getmaxmode' c:/djgpp/tmp\cceaaaaa(.text+0x1b0):modelist.pas: undefined reference to `Getmodename' c:/djgpp/tmp\cceaaaaa(.text+0x30f):modelist.pas: undefined reference to `Grapherrormsg' [... long list of errors] I tried : gpc -o bgi2grx.exe --automake -g bgi2grx.pas -lbcc2 -lgrx20 but I get : c:\djgpp\lib\crt0.o(.data+0xc2):crt0.s: undefined reference to `main' c:\djgpp\lib/libc.a(crt1.o)(.text+0x44e):crt1.c: undefined reference to `main' I AM LOST :-( -- Couperin f DOT couperin AT online DOT fr
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |