Pelles C forum

C language => Beginner questions => Topic started by: modalsist on February 18, 2010, 03:01:36 PM

Title: unresolved external symbol _stat.
Post by: modalsist on February 18, 2010, 03:01:36 PM
Hi all,

Please, where is _stat() function ? What lib ?
I have scaned all libs by using "polib /list" command without success.
I have found on pocrt.dll only.

regards,
Eduardo
Title: Re: unresolved external symbol _stat.
Post by: AlexN on February 18, 2010, 03:23:50 PM
Hi all,

Please, where is _stat() function ? What lib ?
I have scaned all libs by using "polib /list" command without success.
I have found on pocrt.dll only.

regards,
Eduardo
Try in the Porject options...
Compiler -> Define compatibility names
Title: Re: unresolved external symbol _stat.
Post by: modalsist on February 19, 2010, 12:34:54 PM
Alex,

Thanks, but I'm using script file to compiling via command line, so I need know the lib name.

Eduardo
Title: Re: unresolved external symbol _stat.
Post by: AlexN on February 19, 2010, 02:55:18 PM
Alex,

Thanks, but I'm using script file to compiling via command line, so I need know the lib name.

Eduardo

If you select/deselect the option "Define compatibility names" you will see in the last line of the dialog a coming and going parameter -Go.
This parameter you also can use in your script file. ;)
Title: Re: unresolved external symbol _stat.
Post by: TimoVJL on February 19, 2010, 05:33:19 PM
perhaps oldnames.lib
Title: Re: unresolved external symbol _stat.
Post by: henrin on February 23, 2010, 02:31:59 PM
The _stat() function is defined in sys\stat.h (private include file).
Title: Re: unresolved external symbol _stat.
Post by: modalsist on February 28, 2010, 03:19:58 PM
The problem was in /NODEFAULTLIB statement.

Solved ! thanks to all,

Eduardo