C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 02-12-2009, 05:11 AM   #1
Registered User
 
Join Date: Sep 2007
Posts: 32
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?
_lazycat_ is offline   Reply With Quote
Old 02-12-2009, 07:14 AM   #2
Registered User
 
Join Date: Mar 2005
Location: Mountaintop, Pa
Posts: 1,054
Have you tried adding comctl32.lib to your linking process?
BobS0327 is offline   Reply With Quote
Old 02-13-2009, 07:16 AM   #3
Registered User
 
Join Date: Sep 2007
Posts: 32
No, but thanks. I'll try it when I get back home.
_lazycat_ is offline   Reply With Quote
Reply

Tags
dialogbox, digital mars, error, g++, initcommoncontrols

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 02:06 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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