Thread: Help, resource won't link!

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    27

    Help, resource won't link!

    I'm trying to link a .res file with my .exe. I am using the freeware command-line compiler from Borland. However, anytime I try to link them I get: EXE contains invalid OMF record type 0x4D. What's this mean?

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    Are you doing the compile and link steps separately, and are you using ilink32 to do the link step?

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    27
    Yes I am. I will compile the program and then run brc32. (It's suppose to make the .RES, which it does, and link it) Since it doesn't link it, I runk ilink32 seperately and then get that error.

    How do you compile and resource link at the same time?

    Maybe you could just give me the exact command line to use with ilink32?
    Last edited by vulcan_146; 03-25-2004 at 07:56 PM.

  4. #4
    Registered User
    Join Date
    Mar 2004
    Posts
    27
    http://www.winprog.org/tutorial/bcpp.html

    AHA! Crazy Borland, not having bcr32 automatically linking the files. But I got it now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linked List, Please Help!
    By CodeMonkeyZ in forum C Programming
    Replies: 5
    Last Post: 02-17-2009, 06:23 AM
  2. Sorting out a resource manager
    By psychopath in forum Game Programming
    Replies: 1
    Last Post: 11-10-2008, 07:12 PM
  3. Function to check memory left from malloc and free?
    By Lechx in forum C Programming
    Replies: 4
    Last Post: 04-24-2006, 05:45 AM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. Need Link To Resource
    By Krush in forum C Programming
    Replies: 2
    Last Post: 03-31-2003, 01:58 PM