Mail Archives: cygwin/2005/02/01/07:09:02
--------------090600070800040707050103
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hello,
I am porting a plasma simulation code from linux to cygwin (my windows
box is 4x faster than the linux box I can get).
During the linking phase I am getting an error message about unresolved
symbols. I am a bit puzzled about some of them (tcl/tk, xpm) because I
believe that I am pointing to the correct libraries (so much about my
knowledge of pointing to libraries), and baffled by others, as I don't
have a clue where they may be coming from.
I am attaching the output of the linker separately, but here is a
breakdown of the errors:
___getreent
_sind, _cosd (I do have -lm on the command line)
_Tcl_Eval, Tcl_Create_Command (funny, but I find the first one in the
libtcl.a, not the second)
_Tk_NameToWindow (I do have -ltcl, -ltk, and I believe -L is set
correctly on the command line)
_BXG_Write_2,3D (What library does this belong to?)
_XpmWriteFromPixMap (I have the Xpm-NoWindows package, but I don't see
any libxpm.a on the system, only s,cxpm.exe)
I am using the most recent version of all the packages (sorry, I don't
have the output of cygcheck with me right now)
Clues? comments (like go away, and don't bug us :-)
thanks,
Mirko
--
m*irko*vukovic-at-nycap-rr-com
--------------090600070800040707050103
Content-Type: text/plain;
name="make.out"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="make.out"
gcc -o ../xpdp1.exe fft.o field.o move.o gather.o pdp1.o start.o load.o prest.o padjus.o initwin.o maxwellv.o mccdiaginit.o xsect.o argonmcc.o heliummcc.o neonmcc.o oxygenmcc.o mcc.o -mno-cygwin -L/lib/xgrafix -L/usr/lib -L/usr/X11R6/lib -ltk -ltcl -lXpm -lX11 -lm -lXGC20 -lX11
start.o(.text+0x80f): In function `start':
/mv-etc/program-files/berkeley-pic/xpdp1/src/start.c:187: undefined reference to `___getreent'
start.o(.text+0x827):/mv-etc/program-files/berkeley-pic/xpdp1/src/start.c:188: undefined reference to `___getreent'
start.o(.text+0x1179):/mv-etc/program-files/berkeley-pic/xpdp1/src/start.c:300: undefined reference to `_cosd'
start.o(.text+0x1195):/mv-etc/program-files/berkeley-pic/xpdp1/src/start.c:301: undefined reference to `_sind'
padjus.o(.text+0x1415): In function `sterm':
/mv-etc/program-files/berkeley-pic/xpdp1/src/padjus.c:255: undefined reference to `___getreent'
padjus.o(.text+0x1803): In function `ionization':
/mv-etc/program-files/berkeley-pic/xpdp1/src/padjus.c:314: undefined reference to `___getreent'
padjus.o(.text+0x2957): In function `injection_push_FTSBP':
/mv-etc/program-files/berkeley-pic/xpdp1/src/padjus.c:524: undefined reference to `_cosd'
padjus.o(.text+0x2975):/mv-etc/program-files/berkeley-pic/xpdp1/src/padjus.c:525: undefined reference to `_sind'
padjus.o(.text+0x2993):/mv-etc/program-files/berkeley-pic/xpdp1/src/padjus.c:526: undefined reference to `_cosd'
padjus.o(.text+0x29b1):/mv-etc/program-files/berkeley-pic/xpdp1/src/padjus.c:527: undefined reference to `_sind'
padjus.o(.text+0x2c27):/mv-etc/program-files/berkeley-pic/xpdp1/src/padjus.c:552: undefined reference to `_cosd'
padjus.o(.text+0x2c45):/mv-etc/program-files/berkeley-pic/xpdp1/src/padjus.c:553: undefined reference to `_sind'
padjus.o(.text+0x2c63):/mv-etc/program-files/berkeley-pic/xpdp1/src/padjus.c:554: undefined reference to `_cosd'
padjus.o(.text+0x2c81):/mv-etc/program-files/berkeley-pic/xpdp1/src/padjus.c:555: undefined reference to `_sind'
/lib/xgrafix/libXGC20.a(xginitc.o)(.text+0x1141):xginitc.c: undefined reference to `___getreent'
/lib/xgrafix/libXGC20.a(xginitc.o)(.text+0x1248):xginitc.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgsetup.o)(.text+0xa7):xgsetup.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgsetup.o)(.text+0xf9):xgsetup.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgsetup.o)(.text+0x440):xgsetup.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgsetup.o)(.text+0x609):xgsetup.c: undefined reference to `_Tk_NameToWindow'
/lib/xgrafix/libXGC20.a(xgsetup.o)(.text+0x633):xgsetup.c: undefined reference to `_Tk_CreateEventHandler'
/lib/xgrafix/libXGC20.a(xgsetup.o)(.text+0x69c):xgsetup.c: undefined reference to `_Tk_ChangeWindowAttributes'
/lib/xgrafix/libXGC20.a(xgsetup.o)(.text+0x6b7):xgsetup.c: undefined reference to `_Tk_GetGC'
/lib/xgrafix/libXGC20.a(xgsetup.o)(.text+0xd5):xgsetup.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x1d6):xgcommands.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x34e):xgcommands.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x3d8):xgcommands.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x44f):xgcommands.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x534):xgcommands.c: more undefined references to `_Tcl_Eval' follow
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x831):xgcommands.c: undefined reference to `_Tk_MainLoop'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x851):xgcommands.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x877):xgcommands.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0xa6b):xgcommands.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0xac7):xgcommands.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0xe24):xgcommands.c: undefined reference to `_XpmWriteFileFromPixmap'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0xf1c):xgcommands.c: undefined reference to `_XpmWriteFileFromPixmap'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x1230):xgcommands.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x187d):xgcommands.c: undefined reference to `_Tcl_CreateCommand'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x18a8):xgcommands.c: undefined reference to `_Tcl_CreateCommand'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x18d3):xgcommands.c: undefined reference to `_Tcl_CreateCommand'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x18fe):xgcommands.c: undefined reference to `_Tcl_CreateCommand'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x1929):xgcommands.c: undefined reference to `_Tcl_CreateCommand'
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x1954):xgcommands.c: more undefined references to `_Tcl_CreateCommand' follow
/lib/xgrafix/libXGC20.a(xgcommands.o)(.text+0x1da4):xgcommands.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgpaint2d.o)(.text+0x126c):xgpaint2d.c: undefined reference to `___getreent'
/lib/xgrafix/libXGC20.a(xgpaint2d.o)(.text+0x136f):xgpaint2d.c: undefined reference to `___getreent'
/lib/xgrafix/libXGC20.a(xgpaint3d.o)(.text+0x76d):xgpaint3d.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgpaint3d.o)(.text+0x2861):xgpaint3d.c: undefined reference to `_Tcl_Eval'
/lib/xgrafix/libXGC20.a(xgpaintvec.o)(.text+0x1271):xgpaintvec.c: undefined reference to `___getreent'
/lib/xgrafix/libXGC20.a(xgprint.o)(.text+0x139e):xgprint.c: undefined reference to `___getreent'
/lib/xgrafix/libXGC20.a(xgprint.o)(.text+0x26fe):xgprint.c: undefined reference to `___getreent'
/lib/xgrafix/libXGC20.a(xgprint.o)(.text+0x75aa):xgprint.c: undefined reference to `_BXG_Write_2D'
/lib/xgrafix/libXGC20.a(xgprint.o)(.text+0x75f0):xgprint.c: undefined reference to `_BXG_Write_3D'
/lib/xgrafix/libXGC20.a(xgprint.o)(.text+0x763a):xgprint.c: undefined reference to `_BXG_Write_Vector'
collect2: ld returned 1 exit status
make: *** [../xpdp1.exe] Error 1
--------------090600070800040707050103
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--------------090600070800040707050103--
- Raw text -