| www.delorie.com/archives/browse.cgi | search |
| Xref: | news2.mv.net comp.os.msdos.djgpp:2045 |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Simple problem with GRX |
| Message-ID: | <5nashd.17.001FA381@stu.jmls.edu> |
| From: | 5nashd AT stu DOT jmls DOT edu (David B. Nash, III) |
| Date: | Wed, 20 Mar 1996 08:51:09 UNDEFINED |
| References: | <4ii053$oc8 AT bigboote DOT WPI DOT EDU> |
| Organization: | John Marshall Law School |
| NNTP-Posting-Host: | law200.jmls.edu |
| Lines: | 31 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
In article <4ii053$oc8 AT bigboote DOT WPI DOT EDU> thibedek AT wpi DOT edu (Kevin Patrick Thibedeau) writes:
>I am having the most difficult time trying to get the following program to
>compile.
[deleted]
>gcc -lgrx vidtst3.c -o vidtst3
^^^^^
This is in the wrong place. I am new at this, but I have discovered
that whenever you get the "undefined reference to" errors, then the
compiler and/or linker cannot find the library needed.
You MUST put the library codes at the end like this:
gcc vidtst3.c -0 vidtst3 -lgrx
In addition, if you have several libraries, they must be placed
in a specific order. Look in the faq or the gcc info docs for
details.
>vidtst3.c(.text+0xb): undefined reference to 'GrSetMode'
>vidtst3.c(.text+0x1a): undefined reference to 'GrSetMode'
[code deleted]
>--
>Kevin Thibedeau-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.
>_ DOT - DOT _ DOT - DOT _ DOT - DOT _ DOT -thibedek AT wpi DOT edu DOT _ DOT - DOT _ DOT - DOT _ DOT - DOT _ DOT - DOT _ DOT - DOT _ DOT - DOT _ DOT - DOT _ DOT - DOT _ DOT - DOT _ DOT - DOT _ DOT - DOT _
>.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.
good luck,
dbn3.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |