- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, all
I'm new with fortran
I'm trying to migrate a HP3000 application.
My problem is to build a static or dynamic fortran library.
The main program is a c program.
I've got unresolved when linking the c main.
Example:
aff error LNK2001: symbole externe non rsolu _for_cpystr
I'm using :
I'm using :
Intel Fortran Compiler Integration for Microsoft Visual Studio .NET 2003, Version 9.0.2713.2003, Copyright (C) 2002-2005 Intel Corporation
The library is for the moment static.
Do i have do add lib to the c project ?
Thanks in advance.
Franck.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh,
I think i've found the solution
I've had /MTd in the Additionnal Options of the command line/LibrarianProject property page ...
Is it the right solution ?
Franck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If your project is plain C, it may be simpler to try ifort as the linking command. for_cpystr comes from one of the libraries supplied with ifort. ifort would choose the correct libraries from that group.
MT libraries are required for thread safety; if you don't use threading or OpenMP, they may not be the best choice.
MT libraries are required for thread safety; if you don't use threading or OpenMP, they may not be the best choice.
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