mixed language problem

This is a discussion on mixed language problem within the Windows Programming forums, part of the Platform Specific Boards category; mixed language problem I'm trying to link a simple C *.obj file I developed using C with a LaHey fortran ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    104

    mixed language problem

    mixed language problem
    I'm trying to link a simple C *.obj file
    I developed using C with a LaHey fortran program I wrote. However, I get some link errors stating that the linker can't find the Windows API functions called from the C module.
    eg - Error Link 3230:
    Undefined symbol
    " _CreateFile@A28" in module "xxxxx"
    @location 0048AF5A

    The C program compiles,links and runs fine by itself made as either a Windows application or a console application.
    Apparently I need another library referenced in the link statement, but I don't know which one.
    Can anyone help me with this?

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    You need the library file which contains the function CreateFile. This library must be linked in. (if that's correct English)

  3. #3
    Unregistered
    Guest
    Thank you. Do you know which one that is?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Language - When To Use What?
    By tjinr in forum A Brief History of Cprogramming.com
    Replies: 36
    Last Post: 08-06-2006, 03:04 AM
  2. Replies: 5
    Last Post: 11-07-2005, 11:34 PM
  3. searching problem
    By DaMenge in forum C Programming
    Replies: 9
    Last Post: 09-12-2005, 02:04 AM
  4. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 09:37 AM
  5. Peculiar Problem with char variable in C Language
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 10-31-2001, 04:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21