From: Dominique F. <fo...@gr...> - 2006-03-20 09:50:22
|
Hi Tristan, The context of the error is not clear to me: it seems that you're =20 trying to use the wxWindows device (GDeviceWx) but your code refers =20 to GDeviceWin32. Concerning the wxWindows device, you have to know that it's not =20 maintained any more (for a couple of years). Compiling this device is =20= likely to fail, but adapting the code to the current wx library is =20 probably a lightweight task. But looking at your source code, it seems that you're using the =20 GDeviceWin32 from the win32 dev kit 1.3.2 (is it right?). I've tried to reproduce the problem, but without success. First, the =20 'SelectW32Object' (line 196) problem is just a warning due to the =20 inconsistency between inline and dllimport, you can safely ignore the =20= warning. Concerning the linker error: do you include the 'GUIDOEngine.lib' =20 file into your project ? (the GDeviceWin32 is actually included in =20 the GUIDEngine.dll) best, Dominique Le 17 mars 06 =E0 19:07, Tristan Peralta a =E9crit : > Hi, I am developing an application using GuidoLib DevKit and =20 > wxWidgets. My problem is I can't configure my GDeviceWx in Guido =20 > Devkit. I tried an alternative using a nativeDC in GDeviceWin32 but =20= > no luck. It has a linker error. Here is my code: > > #include "../gdevices/GDeviceWin32.h" > > GRHandler gr; > HDC__* hdc; > GDeviceWin32 gdc(hdc, 800, 100); > GuidoOnDrawDesc desc; > desc.handle =3D gr; > desc.hdc =3D gdc; > > here is the error. > 196 C:\projects\guidolib-devkit-v1-3-2\gdevices\GDeviceWin32.h =20 > [Warning] 'void* GDeviceWin32::SelectW32Object(const void*) const' =20 > defined locally after being referenced with dllimport linkage > > [Linker error] undefined reference to `import stub for =20 > _ZN12GDeviceWin32C1EP5HDC(int, int)' > > What do you think is the problem? Thanks > > > > Get Firefox, much better than IE! > > Do you Yahoo!? > Try the new Yahoo! Philippines Front Page! |