News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

gdi32.lib

Started by allan.emren, June 02, 2010, 10:20:23 PM

Previous topic - Next topic

allan.emren

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

TimoVJL

cos() function:

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


May the source be with you

allan.emren

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

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