- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using Visual C 6. I made a Dialog based project by choosing MFC AppWizard(exe). I added some simple fortan subroutine in there, and declared it in my main C file (test1.cpp) with
extern "C" {
void __stdcall FORTEST(void);
}
and called it with
FORTEST();
And I came up with all of these linking errors, with various commands, like "_exit", already defined ( I attached an MS Word file of the error list). So it must have conflicting Fortran and C libraries I assume.
In the past, when I created an empty Win32 Console Application, I was able to call fortran subroutines without a problem, but now that I'm trying to do the MFC AppWizard thing, it doesn't work.
Can someone please help me figure this out?
extern "C" {
void __stdcall FORTEST(void);
}
and called it with
FORTEST();
And I came up with all of these linking errors, with various commands, like "_exit", already defined ( I attached an MS Word file of the error list). So it must have conflicting Fortran and C libraries I assume.
In the past, when I created an empty Win32 Console Application, I was able to call fortran subroutines without a problem, but now that I'm trying to do the MFC AppWizard thing, it doesn't work.
Can someone please help me figure this out?
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try building your Fortran routine with the /threads switch.
James
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do I go about building with the /thread switch?
I normally just hit the build button, I don't know how to do it from a command line as it sounds like you are describing.
I normally just hit the build button, I don't know how to do it from a command line as it sounds like you are describing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Project..Settings..Fortran..Libraries..Reentrancy Support..Threaded. (This is for 6.6 - earlier versions had a checkbox for this.)
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - james@elementyl.com
Try building your Fortran routine with the /threads switch.
James
James
john8103, I have the same problem. How can I contact you?
Thanks
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