From: Dominique F. <fo...@gr...> - 2006-03-23 15:25:17
|
Sorry, but I can't reproduce the problem here: I don't have wxWidgets =20= installed, nor Dev-Cpp. Could you provide a project that reproduces the problem without =20 requiring wx ? Dom Le 23 mars 06 =E0 09:58, Tristan Peralta a =E9crit : > here is my complete code. i have already include GUIDOEngine.lib in =20= > my project but still i got a linker error. I use Dev-Cpp and =20 > wxWidgets. > > I also tried using GDeviceWin32, but still i have a linker error. > > Dominique Fober <fo...@gr...> wrote: > Hi Tristan, > > The context of the error is not clear to me: it seems that you're > trying to use the wxWindows device (GDeviceWx) but your code refers > to GDeviceWin32. > Concerning the wxWindows device, you have to know that it's not > maintained any more (for a couple of years). Compiling this device is > likely to fail, but adapting the code to the current wx library is > probably a lightweight task. > > But looking at your source code, it seems that you're using the > GDeviceWin32 from the win32 dev kit 1.3.2 (is it right?). > I've tried to reproduce the problem, but without success. First, the > 'SelectW32Object' (line 196) problem is just a warning due to the > inconsistency between inline and dllimport, you can safely ignore the > warning. > > Concerning the linker error: do you include the 'GUIDOEngine.lib' > file into your project ? (the GDeviceWin32 is actually included in > 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 > > wxWidgets. My problem is I can't configure my GDeviceWx in Guido > > Devkit. I tried an alternative using a nativeDC in GDeviceWin32 but > > 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 > > [Warning] 'void* GDeviceWin32::SelectW32Object(const void*) const' > > defined locally after being referenced with dllimport linkage > > > > [Linker error] undefined reference to `import stub for > > _ZN12GDeviceWin32C1EP5HDC(int, int)' > > > > What do you think is the problem? Thanks > > |