I failed to link a .so built with g++ to wine. winegcc can not link g++ .o files to .so file. how can I use c++ with wine?
http://ubuntuforums.org/archive/index.php/t-1197637.html
On 10/23/10 6:59 PM, bacchus wrote:> I failed to link a .so built with g++ to wine. > > winegcc can not link g++ .o files to .so file. > > how can I use c++ with wine?You use wineg++. Just be sure you aren't using any C++ functions or classes from DLLs that were compiled with Microsoft Visual C++. You'll get horrendous link errors if you do. Chip
bacchus wrote:> I failed to link a .so built with g++ to wine. > winegcc can not link g++ .o files to .so file.What exactly are you doing? What commands are you using? And what does it say in the terminal (complete output start to finish please).
sorry, i misled you. I tried to add something to kernel32 by calling a .so generated by g++. at beginning, I wanted to link a .a. certainly, winegcc can not link a .a created by g++. so I switched to .so. there was no errors in making kernel32.dll.so but when run "wine notepad.exe", it reported load kernel32.so failed. a C++ function symbol could not be resolved. it was so strange. at last, i found the problem was in my code, there was an unused and undefined class function. i always used the library as .a before,so the problem was not reported. i removed the function.the problem was gone.