Thread: Linking and compilation errors

  1. #1
    Registered User
    Join Date
    Sep 2007

    Linking and compilation errors

    Hi guys, I am trying to compile a the GUI for my program with only empty functions. I compiled the resource script with Digital Mars rcc, and the main cpp file with MinGW g++. I was able to compile both without any error, but then the linker complained that it cannot link to InitCommonControls@@. I then tried to compile with Digital Mars dmc. I guess I must somehow be doing it wrong, since it kept complaining that DialogBox() need explicit cast to pass 4 parameters...Can anyone please help me?

  2. #2
    Registered User
    Join Date
    Mar 2005
    Mountaintop, Pa
    Have you tried adding comctl32.lib to your linking process?

  3. #3
    Registered User
    Join Date
    Sep 2007
    No, but thanks. I'll try it when I get back home.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking errors
    By Zeeshan in forum C++ Programming
    Replies: 1
    Last Post: 02-22-2009, 02:10 AM
  2. makefile and windows compilation
    By inkare in forum C Programming
    Replies: 33
    Last Post: 07-18-2008, 06:55 PM
  3. Ten Errors
    By AverageSoftware in forum Contests Board
    Replies: 0
    Last Post: 07-20-2007, 10:50 AM
  4. Linker Errors...
    By manudathg in forum C Programming
    Replies: 4
    Last Post: 10-04-2005, 05:50 PM
  5. Winsock compilation errors
    By jmd15 in forum Networking/Device Communication
    Replies: 2
    Last Post: 08-03-2005, 08:00 AM

Tags for this Thread