NO

Author Topic: gdi32.lib  (Read 3371 times)

allan.emren

  • Guest
gdi32.lib
« on: June 02, 2010, 10:20:23 pm »
Hello,
I am developing a GPS program for PDA, and have updated my compiler to version 6.0
Now, when I try to compile, I get the message
POLINK: fatal error: File not found: 'gdi32.lib'.

Investigation shows that this library is not present in lib/WinCE
There is one in the Lib/Win directory
I have tried to uninstall/install Pelles C, without result.

Attempts to remove gdi32.lib from the linker list makes the program compile and link, but it can no longer handle functions like cos. The following line makes the program stall:
Newpos.lat_corr = cos( Newpos.pos_lat );

Can the library be downloaded separately? Or is there some other way to solve the problem?

Cheers,

Allan

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1893
Re: gdi32.lib
« Reply #1 on: June 03, 2010, 08:44:02 am »
cos() function:

Header file: <math.h>
Library for PDA: coredll.lib


 
May the source be with you

allan.emren

  • Guest
Re: gdi32.lib
« Reply #2 on: June 03, 2010, 09:44:11 am »
Thank you Timovjl,
Unfortunately, this does not solve the problem. My impression also was what you tell.
<math.h> is included and coredll.lib is in the link list (together with aygshell.lib, corelibc.lib, and commctrl.lib).

For diagnostic purposes I have modified the code like follows:

......
......
Newpos.pos_lat = 57.82;
SetDlgItemText( hwndDlg, GGAbox, L"......Latitud......");   

Newpos.lat_corr = cos( Newpos.pos_lat );
SetDlgItemText( hwndDlg, GGAbox, L"......Lat corr......");   

Newpos.pos_long = 12.46;
SetDlgItemText( hwndDlg, GGAbox, L"......Long......");   

Newpos.alt = 516;
SetDlgItemText( hwndDlg, GGAbox, L"......New pos......");   
......
......

The last message I read on the display is ......Latitud......

Cheers,

Allan

allan.emren

  • Guest
Re: gdi32.lib
« Reply #3 on: August 01, 2010, 08:51:36 pm »
Possibly, there is a bug in the compiler. When I change all double variables to float, everything works OK - at least for a few thousand cycles.

Will submit a report on suspected bug.

Allan