<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1515" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=054475913-23082005><FONT face=Arial size=2>wineg++ is using
g++, and is passing its options to g++.</FONT></SPAN></DIV>
<DIV><SPAN class=054475913-23082005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=054475913-23082005><FONT face=Arial size=2>How can
I link some winelib-dependant code with g++ ?</FONT></SPAN></DIV>
<DIV><SPAN class=054475913-23082005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=054475913-23082005><FONT face=Arial size=2>compilation is okay,
but at linking time, all wine functions are unresolved.</FONT></SPAN></DIV>
<DIV><SPAN class=054475913-23082005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=054475913-23082005><FONT face=Arial size=2><SPAN
class=054475913-23082005><FONT face=Arial size=2>// ### here's the
output :###</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=054475913-23082005><FONT face=Arial size=2><SPAN
class=054475913-23082005></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=054475913-23082005><FONT face=Arial size=2><SPAN
class=054475913-23082005></SPAN></FONT></SPAN><SPAN
class=054475913-23082005>[root@udp015809uds Wine2]# g++ -lwine registry.o
registry_wrap.o -o registry.out</DIV>
<DIV>
<P><SPAN class=054475913-23082005>
</SPAN>registry.o(.text+0x2e): In function `CreateKey(char const*)':</P>
<P><SPAN class=054475913-23082005> </SPAN>: undefined
reference to `RegCreateKeyA'</P>
<P><SPAN class=054475913-23082005>
</SPAN>registry.o(.text+0x58): In function `CreateKey(char const*)':</P>
<P><SPAN class=054475913-23082005> </SPAN>: undefined
reference to `RegQueryValueExA'</P>
<P><SPAN
class=054475913-23082005> </SPAN>registry.o(.text+0x8f): In
function `CreateKey(char const*)':</P>
<P><SPAN class=054475913-23082005> </SPAN>: undefined
reference to `RegQueryValueExA'</P>
<P><SPAN
class=054475913-23082005> </SPAN>registry.o(.text+0xa5): In
function `CreateKey(char const*)':</P>
<P><SPAN class=054475913-23082005> </SPAN>: undefined
reference to `MessageBoxA'</P>
<P><SPAN class=054475913-23082005> </SPAN>collect2: ld
returned 1 exit status<FONT size=2></P></FONT></SPAN></DIV>
<DIV><SPAN class=054475913-23082005><FONT face=Arial size=2>// ### And the same
code compiled with wineg++ ###</FONT></SPAN></DIV>
<DIV><SPAN class=054475913-23082005>
<P><FONT size=2></FONT></P>
<P><FONT size=2>[root@udp015809uds Wine2]# wineg++ -lwine registry.o
registry_wrap.o -o registry.out</FONT></P>
<P><SPAN class=054475913-23082005><FONT size=2><FONT
face=Arial> // program runs okay.</FONT></FONT></SPAN></P>
<P><FONT face=Arial size=2><SPAN class=054475913-23082005>For information, I
need to use g++ in order to assimilate wine lib framework to SWIG, to generate
Win32 wrappers in C# for mono.</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
class=054475913-23082005></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN
class=054475913-23082005>Thanks.</SPAN></FONT></P></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>