<!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>&nbsp;</DIV>
<DIV><SPAN class=054475913-23082005><FONT face=Arial size=2>How&nbsp;can 
I&nbsp;link some winelib-dependant code with g++ ?</FONT></SPAN></DIV>
<DIV><SPAN class=054475913-23082005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=054475913-23082005><FONT face=Arial size=2><SPAN 
class=054475913-23082005><FONT face=Arial size=2>// ###&nbsp;&nbsp;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>&nbsp;</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>&nbsp;&nbsp;&nbsp; 
</SPAN>registry.o(.text+0x2e): In function `CreateKey(char const*)':</P>
<P><SPAN class=054475913-23082005>&nbsp;&nbsp;&nbsp; </SPAN>: undefined 
reference to `RegCreateKeyA'</P>
<P><SPAN class=054475913-23082005>&nbsp;&nbsp;&nbsp; 
</SPAN>registry.o(.text+0x58): In function `CreateKey(char const*)':</P>
<P><SPAN class=054475913-23082005>&nbsp;&nbsp;&nbsp; </SPAN>: undefined 
reference to `RegQueryValueExA'</P>
<P><SPAN 
class=054475913-23082005>&nbsp;&nbsp;&nbsp;</SPAN>registry.o(.text+0x8f): In 
function `CreateKey(char const*)':</P>
<P><SPAN class=054475913-23082005>&nbsp;&nbsp;&nbsp; </SPAN>: undefined 
reference to `RegQueryValueExA'</P>
<P><SPAN 
class=054475913-23082005>&nbsp;&nbsp;&nbsp;</SPAN>registry.o(.text+0xa5): In 
function `CreateKey(char const*)':</P>
<P><SPAN class=054475913-23082005>&nbsp;&nbsp;&nbsp; </SPAN>: undefined 
reference to `MessageBoxA'</P>
<P><SPAN class=054475913-23082005>&nbsp;&nbsp;&nbsp; </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>&nbsp;&nbsp;&nbsp; // 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>&nbsp;</P>
<P><FONT face=Arial size=2><SPAN 
class=054475913-23082005>Thanks.</SPAN></FONT></P></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>