Board index » cppbuilder » Unresolved external '_errno'

Unresolved external '_errno'


2005-03-15 02:21:33 AM
cppbuilder75
Hi.
I'm trying to rebuild a very old project.... I have not had to do this
in quite some time.
I am using Borland 5.02 and the OWL that came with it.
When I try to link the application (the compile goes seemingly fine),
I get the link error:
"Unresolved external '_errno'
I am guessing that this is part of the run time library...
I did not specify not to use anything I did not years ago, so I'm
trying to figure out if maybe a path change or something could cause
the _errno link error.
Thanks for your patience and advice.
Jeff Kish
 
 

Re:Unresolved external '_errno'

Jeff Kish wrote:
Quote
I am using Borland 5.02 and the OWL that came with it.
When I try to link the application (the compile goes seemingly fine),
I get the link error:

"Unresolved external '_errno'
I am thinking maybe you turned on or off the runtime library.
Without the RTLDLL, errno is a variable.
With the RTL, it is a function: GetErrno().
If you have old objects compiled without RTL, and are now linking with
RTL, then they wouldn't find an errno.
Recheck your settings, then recompile the entire project. (delete all
objs to force it if you must)
Quote
trying to figure out if maybe a path change or something could cause
the _errno link error.
Pathing problems would have more than one minor error.
 

Re:Unresolved external '_errno'

On Mon, 14 Mar 2005 11:07:14 -0800, Bob Gonder
< XXXX@XXXXX.COM >wrote:
Quote
Jeff Kish wrote:

>I am using Borland 5.02 and the OWL that came with it.
>When I try to link the application (the compile goes seemingly fine),
>I get the link error:
>
>"Unresolved external '_errno'

I am thinking maybe you turned on or off the runtime library.
Without the RTLDLL, errno is a variable.
With the RTL, it is a function: GetErrno().
If you have old objects compiled without RTL, and are now linking with
RTL, then they wouldn't find an errno.

Recheck your settings, then recompile the entire project. (delete all
objs to force it if you must)

>trying to figure out if maybe a path change or something could cause
>the _errno link error.

Pathing problems would have more than one minor error.

Actually "I didn't touch anything". (mmm sounds like my kids)
OK. Normally we have the include default libraries unchecked, so I
guess that means errno should be a variable.
I'm not sure how I would end up with that message if my project is set
to not include default libraries.
Thanks. I'm still head scratching, but better informed.
Jeff Kish
 

{smallsort}

Re:Unresolved external '_errno'

On Mon, 14 Mar 2005 11:07:14 -0800, Bob Gonder
< XXXX@XXXXX.COM >wrote:
Quote
Jeff Kish wrote:

>I am using Borland 5.02 and the OWL that came with it.
>When I try to link the application (the compile goes seemingly fine),
>I get the link error:
>
>"Unresolved external '_errno'

I am thinking maybe you turned on or off the runtime library.
Without the RTLDLL, errno is a variable.
With the RTL, it is a function: GetErrno().
If you have old objects compiled without RTL, and are now linking with
RTL, then they wouldn't find an errno.

Recheck your settings, then recompile the entire project. (delete all
objs to force it if you must)

>trying to figure out if maybe a path change or something could cause
>the _errno link error.

Pathing problems would have more than one minor error.

Still trying to figure out what got messed up.
When I right click on a variable in te ide, and try "Browse symbol" I
get a messagebox saying ".Exe not found".
Is this a indicator of some fubar sort of thing?
Thanks again
Jeff Kish
 

Re:Unresolved external '_errno'

Jeff Kish wrote:
Quote
Still trying to figure out what got messed up.
Default libraries isn't it.
Try StandardRuntimeLibraries->Static.
(In BC++3.1 it's under Options/Linker/Libraries)
Remove all object files and pre-compiled headers, and do a Build-All.
Quote
When I right click on a variable in te ide, and try "Browse symbol" I
get a messagebox saying ".Exe not found".

Is this a indicator of some fubar sort of thing?
No, you probably can't explore varables unless the program is
compiled. And it isn't compiled yet (linker error)
 

Re:Unresolved external '_errno'

On Mon, 14 Mar 2005 18:52:00 -0800, Bob Gonder
< XXXX@XXXXX.COM >wrote:
Quote
Jeff Kish wrote:

>Still trying to figure out what got messed up.

Default libraries isn't it.
Try StandardRuntimeLibraries->Static.
(In BC++3.1 it's under Options/Linker/Libraries)
Remove all object files and pre-compiled headers, and do a Build-All.

>When I right click on a variable in te ide, and try "Browse symbol" I
>get a messagebox saying ".Exe not found".
>
>Is this a indicator of some fubar sort of thing?

No, you probably can't explore varables unless the program is
compiled. And it isn't compiled yet (linker error)

Thanks much. Things look better.
Jeff Kish