This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Compiling error gcc/g77 - MinGW
- From: Jan Robbe <jan at robbe-online dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 18 Feb 2008 04:35:37 -0800 (PST)
- Subject: Compiling error gcc/g77 - MinGW
Hi,
i try to compile a code (XFoil) with gcc/g77 . O/S is Windows XP, using
MinGW as an environment.
I successfully compiled the library (libPlt.a) and the object files, but
when I come to the build of the exe, I have no luck. The following errors
occur when trying to compile xfoil
C:\XFOILC\bin>make xfoil
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
g77 -o xfoil xfoil.o xpanel.o xoper.o xtcam.o xgdes.o xqdes.o
xmdes.o xsolve.o xbl.o xblsys
.o xpol.o xplots.o pntops.o xgeom.o xutils.o modify.o blplot.o
polplt.o aread.o naca.o spline.o plu
til.o iopol.o gui.o sort.o dplot.o profil.o userio.o frplot0.o ../
plotlib/libPlt.a
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x118): undefined reference to
`XWarpPointer'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x12f): undefined reference to
`XNextEvent'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x140): undefined reference to
`XPending'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x167): undefined reference to
`XWindowEvent'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x1ad): undefined reference to
`XLookupString'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x1de): undefined reference to
`XSetInputFocus'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x23f): undefined reference to
`XChangeGC'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x2a8): undefined reference to
`XChangeGC'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x309): undefined reference to
`XSetDashes'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x329): undefined reference to
`XSetLineAttributes'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x373): undefined reference to
`XDrawString'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x39f): undefined reference to
`XFreeColors'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x3ed): undefined reference to
`XAllocColor'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x459): undefined reference to
`XParseColor'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x50a): undefined reference to
`XSetForeground'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x532): undefined reference to
`XSetForeground'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x5c9): undefined reference to
`XFillPolygon'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x682): undefined reference to
`XDrawLines'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x6fd): undefined reference to
`XCreatePixmap'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x71c): undefined reference to
`XSetForeground'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x746): undefined reference to
`XFillRectangle'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x760): undefined reference to
`XSetForeground'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x7a1): undefined reference to
`XDrawLine'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x7c9): undefined reference to
`XFlush'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x7ff): undefined reference to
`XCopyArea'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x823): undefined reference to
`XDestroyWindow'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x83f): undefined reference to
`XFreeCursor'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x852): undefined reference to
`XFreeGC'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x86d): undefined reference to
`XFreePixmap'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x87e): undefined reference to
`XCloseDisplay'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x8a5): undefined reference to
`XGetWindowAttributes'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x8e5): undefined reference to
`XQueryTree'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x8ff): undefined reference to
`XFree'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x92c): undefined reference to
`XGetWindowAttributes'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x963): undefined reference to
`XNextEvent '
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x974): undefined reference to
`XPending'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x99b): undefined reference to
`XResizeWindow'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x9ae): undefined reference to
`XMapRaised'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0x9ba): undefined reference to
`XFlush'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xa0e): undefined reference to
`XFreePixmap'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xa32): undefined reference to
`XCreatePixmap'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xa67): undefined reference to
`XSetForeground'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xa91): undefined reference to
`XFillRectangle'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xaab): undefined reference to
`XSetForeground'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xae3): undefined reference to
`XSetForeground'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xb0d): undefined reference to
`XFillRectangle'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xb27): undefined reference to
`XSetForeground'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xb3b): undefined reference to
`XClearWindow'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xc28): undefined reference to
`XCreateWindow'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xc8a): undefined reference to
`XSetNormalHints'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xcac): undefined reference to
`XSetStandardProperties'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xcd4): undefined reference to
`XQueryColor'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xcec): undefined reference to
`XQueryColor'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xd0b): undefined reference to
`XCreateBitmapFromData'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xd2a): undefined reference to
`XCreatePixmapCursor'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xd4a): undefined reference to
`XDefineCursor'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xd5d): undefined reference to
`XRecolorCursor'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xdd9): undefined reference to
`XCreateGC'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xdf0): undefined reference to
`XLoadFont'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xe05): undefined reference to
`XSetFont'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xe18): undefined reference to
`XMapWindow'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xe33): undefined reference to
`XNextEvent'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xe68): undefined reference to
`XCreateFontCursor'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xf10): undefined reference to
`XOpenDisplay'
../plotlib/libPlt.a(Xwin.o):Xwin.c:(.text+0xf2e): undefined reference to
`XGetInputFocus'
collect2: ld returned 1 exit status
** error 1 ** deleting xfoil
I suppose I am missing a library or something. Does anybody has an
idea what goes wrong? The path to the X11 (X-Window) libraries ist set
in the environment variables. Maybe, the X11 libs are not complete?
When compiling Xwin.c during the creation libPlt.a everything worked
fine since the X11 libs, which were required by Xwin.c (Xlib.h,
cursorfont.h, ..), could obviously be found.
Thank you for your help in advance!
Regards,
Jan
--
View this message in context: http://www.nabble.com/Compiling-error-gcc-g77---MinGW-tp15544444p15544444.html
Sent from the gcc - Help mailing list archive at Nabble.com.