Help, resource won't link!

This is a discussion on Help, resource won't link! within the C++ Programming forums, part of the General Programming Boards category; I'm trying to link a .res file with my .exe. I am using the freeware command-line compiler from Borland. However, ...

  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 06: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, 05:23 AM
  2. Sorting out a resource manager
    By psychopath in forum Game Programming
    Replies: 1
    Last Post: 11-10-2008, 06: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, 09:33 AM
  5. Need Link To Resource
    By Krush in forum C Programming
    Replies: 2
    Last Post: 03-31-2003, 12:58 PM

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