By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,137 Members | 2,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,137 IT Pros & Developers. It's quick & easy.

Linker Errors with /CLR option

P: n/a
I have a MFC application developed using VC++ 5. Recently I ported that
to VC++ 7.1 and now I am trying to compile the MFC application with
/CLR under VC++ 7.1. And I get linker errors referring to one of the
libraries that the project uses. Without the /CLR, the project compiles
and runs well.

There is some library by name task.lib and the code refers to that lib,
in the linker step i get the following linker errors:-

Task.lib : error LNK2019: unresolved external symbol _write_stdout
referenced in function _main
Task.lib : error LNK2019: unresolved external symbol _read_stdin
referenced in function _main
Task.lib : error LNK2019: unresolved external symbol
_enable_signal_catcher referenced in function _main
Task.lib : error LNK2019: unresolved external symbol _keymatch
referenced in
function _parse_switches

I have searched the project for the symbols that i see in the errors.
It seems that the symbols are inside the lib, and with the /CLR option
it gives out the error.

Please help me in fixing the errors, and enlighten me what happens in
the dark.

Jan 26 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.