- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After having battled MCLS and solved it with the nodefaultlib switch. I have come up with new errors. Incidentally, I had tried giving a full path to libc.lib and the nodefaultlib switch did not work. Only when I just used libc.lib did the nodefaultlib switch work. The new errors I now face are unresolved externals that did not show up before. They are:
Linking...
libci.lib(filebuf.obj) : error LNK2001: unresolved external symbol ___pioinfo
dfor.lib(intrin.obj) : error LNK2001: unresolved external symbol ___fastflag
dfor.lib(intrini.obj) : error LNK2001: unresolved external symbol ___fastflag
dfor.lib(for_m_qqs.obj) : error LNK2001: unresolved external symbol _errno
dfor.lib(for_portlib.obj) : error LNK2001: unresolved external symbol _errno
dfor.lib(for_diags.obj) : error LNK2001: unresolved external symbol __sys_nerr
dfor.lib(for_io_util.obj) : error LNK2001: unresolved external symbol __pctype
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol __pctype
dfor.lib(for_io_util.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol ___argv
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol ___argc
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol __pxcptinfoptrs
These look like c routines. Did I loose them by ignoring libc.lib? This is a mixed fortran/c program. Should I have ignored msvcrt.lib instead?
Tom
Linking...
libci.lib(filebuf.obj) : error LNK2001: unresolved external symbol ___pioinfo
dfor.lib(intrin.obj) : error LNK2001: unresolved external symbol ___fastflag
dfor.lib(intrini.obj) : error LNK2001: unresolved external symbol ___fastflag
dfor.lib(for_m_qqs.obj) : error LNK2001: unresolved external symbol _errno
dfor.lib(for_portlib.obj) : error LNK2001: unresolved external symbol _errno
dfor.lib(for_diags.obj) : error LNK2001: unresolved external symbol __sys_nerr
dfor.lib(for_io_util.obj) : error LNK2001: unresolved external symbol __pctype
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol __pctype
dfor.lib(for_io_util.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol ___argv
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol ___argc
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol __pxcptinfoptrs
These look like c routines. Did I loose them by ignoring libc.lib? This is a mixed fortran/c program. Should I have ignored msvcrt.lib instead?
Tom
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tom,
You've been getting help from us via vf-support - it would be best if you continued that way.
/nodefaultlib is almost always the wrong thing to use - unfortunately, the MS linker suggests that. Take out /nodefaultlib and if you still have problems, write us at vf-support.
Steve
You've been getting help from us via vf-support - it would be best if you continued that way.
/nodefaultlib is almost always the wrong thing to use - unfortunately, the MS linker suggests that. Take out /nodefaultlib and if you still have problems, write us at vf-support.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Tom:
I'm also using fortran/c program, and encoutered a huge problem. I'm wondering if I could get some advices from you since it seems you're more experienced in this area.
I use a Fortran main program(f_main) to call a c subroutine(c_sub). In the c subroutine, functions defined in a self-made user.lib are used.
The error is: Linking... f_main.obj: error LNK2001: unresolved external symbol _***(user.lib).
Any tips?
In addition, in the reply Steven posted, he mentioned vf-support. I wonder what's that mean, and how I can get help from it.
Many thanks!
Jenny Zhen
I'm also using fortran/c program, and encoutered a huge problem. I'm wondering if I could get some advices from you since it seems you're more experienced in this area.
I use a Fortran main program(f_main) to call a c subroutine(c_sub). In the c subroutine, functions defined in a self-made user.lib are used.
The error is: Linking... f_main.obj: error LNK2001: unresolved external symbol _***(user.lib).
Any tips?
In addition, in the reply Steven posted, he mentioned vf-support. I wonder what's that mean, and how I can get help from it.
Many thanks!
Jenny Zhen

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page