rowgram
November 7th, 2005, 05:34 PM
I have .NET app that compiles but has a problem during linking :
error LNK2001: unresolved external symbol "int __cdecl ReadLn(struct _iobuf *,char * const)" (?ReadLn@@$$FYAHPAU_iobuf@@QAD@Z)
The ReadLn function prototype is defined in a header file
& is called in another header file.
My compiler options are set to /Gd & /Tp.
If I don not call the function (& just have it's prototype declared),
then the program links fine.
When I try to resolve the ambiguity by explicitly calling the function
like namespace::function, I get an error saying that function is not a
member of namespace. This puzzles me since everywhere I look
(Classe View, Intellisense, Context Help) recognizes function as
a member of the namespace.
Why is the linker confused on this function ?
Regards,
ak
error LNK2001: unresolved external symbol "int __cdecl ReadLn(struct _iobuf *,char * const)" (?ReadLn@@$$FYAHPAU_iobuf@@QAD@Z)
The ReadLn function prototype is defined in a header file
& is called in another header file.
My compiler options are set to /Gd & /Tp.
If I don not call the function (& just have it's prototype declared),
then the program links fine.
When I try to resolve the ambiguity by explicitly calling the function
like namespace::function, I get an error saying that function is not a
member of namespace. This puzzles me since everywhere I look
(Classe View, Intellisense, Context Help) recognizes function as
a member of the namespace.
Why is the linker confused on this function ?
Regards,
ak