|
[Date Index]
[Thread Index]
[Author Index]
Problems compiling addrow with gcc-mingw (windows).
- To: mathgroup at smc.vnet.net
- Subject: [mg111326] Problems compiling addrow with gcc-mingw (windows).
- From: "Eduardo M. A. M.Mendes" <emammendes at gmail.com>
- Date: Tue, 27 Jul 2010 07:53:55 -0400 (EDT)
Hello
I am trying to get addwo.exe using gcc (or g++) that comes with mingw. I
have all libs and includes from cygwin that come with Mathematica (Mathlink)
installed in a different dir structure but unfortunately I got the following
error
C:\msys\1.0\home\eduardo\MATHLI~1\addtwo>g++
-Ic:/msys/1.0/home/eduardo/include
addtwo.c addtwotm.c -o addtwo.exe -Lc:/msys/1.0/home/eduardo/lib -lML32i3
C:\Users\eduardo\AppData\Local\Temp\ccYUOj6v.o:addtwotm.c:(.text+0x285):
multip
e definition of `addtwo(int, int)'
C:\Users\eduardo\AppData\Local\Temp\ccNPhnOo.o:addtwo.c:(.text+0x0): first
defi
ed here
C:\Users\eduardo\AppData\Local\Temp\ccYUOj6v.o:addtwotm.c:(.text+0x293):
multip
e definition of `WinMain@16'
C:\Users\eduardo\AppData\Local\Temp\ccNPhnOo.o:addtwo.c:(.text+0xe): first
defi
ed here
C:\Users\eduardo\AppData\Local\Temp\ccYUOj6v.o:addtwotm.c:(.text+0x15b):
undefi
ed reference to `GetStockObject@4'
collect2: ld returned 1 exit status
Does anyone know what to sort this out?
Many thanks
Ed
Prev by Date:
Re: NDSolve - how to bypass safety chceck?
Next by Date:
Forcing Mathematica to use standard fonts
Previous by thread:
Re: Packages designed for use in player pro
Next by thread:
Re: Problems compiling addrow with gcc-mingw (windows).
|