Linker Error Undefined Reference To Initcommoncontrols 0
Search Username Password Remember Me? Register Lost Password? facebook google twitter rss Free Web Developer Tools Advanced Search Forum Programming Languages C Programming [Linker error] undefined reference to `InitCommonControls@0' Thread: [Linker error] undefined reference to `InitCommonControls@0' Share This Thread Tweet This + 1 this Post To Linkedin Subscribe to this Thread Subscribe to This Thread October 31st, 2003,12:59 PM #1 No Profile Picture ataw3k View Profile View Forum Posts Junior Member Devshed Newbie (0 - 499 posts) Join Date Oct 2003 Posts 3 Rep Power 0 [Linker error] undefined reference to `InitCommonControls@0' Adding a simple InitCommonControls() to a very basic app results in a linking error: [Linker error] undefined reference to `InitCommonControls@0' of course i included commctrl.h How do i solve this? Faq Reply With Quote October 31st, 2003,02:06 PM #2 Scorpions4ever View Profile View Forum Posts Banned ;) Devshed Supreme Being (6500+ posts) Join Date Nov 2001 Location Woodland Hills, Los Angeles County, California, USA Posts 9,768 Rep Power 4299 Add comctl32.lib to the list of libraries to link to. IIRC in VC++ 6.0, you can do this by going to Project-->Settings--> Link tab and adding it to the Object/library modules edit box Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo Faq Reply With Quote October 31st, 2003,04:28 PM #3 No Profile Picture ataw3k View Profile View Forum Posts Junior Member Devshed Newbie (0 - 499 posts) Join Date Oct 2003 Posts 3 Rep Power 0 thanks i got it working :) Faq Reply With Quote Share This Thread Tweet This + 1 this Post To Linkedin Subscribe to this Thread Subscribe to This Thr
Compiler / Linking / IDE Related Search Undefined Reference Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here. Post Reply Print view Search Advanced search 7 posts • Page 1 of 1 dmarques Earned a small fee Posts: 12 Joined: Wed http://forums.devshed.com/programming-42/linker-error-undefined-reference-initcommoncontrols-0-a-95162.html Aug 28, 2013 5:32 pm Undefined Reference Quote Postby dmarques » Wed Aug 28, 2013 6:15 pm Hi everyone,I have a complex software project that has been developed under Linux, using CodeBlocks 12.11, that compiles and runs just fine in Ubuntu (either 32 or 64 bits) but now, while trying to come https://forums.wxwidgets.org/viewtopic.php?t=37949 up with a Windows 32 bit version of it (CodeBlocks 12.11 + MinGW + Windows 7) I have been struggling with some strange sort of linking problem.The goal is to statically join my code to every single other lib needed for that entire piece of software to run in a "stand-alone" fashion. I am not go into details why this is a must for this project but, keep in mind it is (I need to end up with a .EXE file with everything in it). However, after having tried *SEVERAL* ways to compile wxWidgets trying to get a "monolithic" lib, I think something is not right.The best solution so far was to join libwxmsw28u.a to my project and then get the following messages:C:\wxWidgets-2.8.12\lib\gcc_lib\libwxmsw28u.a(monolib_app.o):app.cpp|| undefined reference to `InitCommonControls@0'|C:\wxWidgets-2.8.12\lib\gcc_lib\libwxmsw28u.a(monolib_app.o):app.cpp|| undefined reference to `OleInitialize@4'|C:\wxWidgets-2.8.12\lib\gcc_lib\libwxmsw28u.a(monolib_app.o):app.cpp|| undefined reference to `OleUninitialize@0'|As long as I understand a "monolithic" lib should provide every single code reference in itself (there shouldn't be any
here for a quick overview of the site Help Center Detailed answers to any questions you might http://stackoverflow.com/questions/14557657/linker-error-c-undefined-reference have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting http://www.dreamincode.net/forums/topic/98911-c-application-compiling/ ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million linker error programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Linker Error C++ “undefined reference ” [duplicate] up vote 9 down vote favorite 2 Possible Duplicate: What is an undefined reference/unresolved external symbol error and how do I fix it? Trying to compile my program via g++ -o prog1 linker error undefined main.cpp -std=c++0x I get the error: /tmp/cc1pZ8OM.o: In function `main': main.cpp:(.text+0x148): undefined reference to `Hash::insert(int, char)' collect2: error: ld returned 1 exit status main.cpp #include
5 Replies - 4307 Views - Last Post: 13 April 2009 - 07:18 AM Rate Topic: #1 XTRobot New D.I.C Head Reputation: 0 Posts: 5 Joined: 03-April 09 C++ Application Compiling Posted 13 April 2009 - 05:13 AM Hello,this portal and forum are great I have one question. I have one application code,i am sure that the code is correct,but when i compile it at Dev C++ Compiler,i get some error and i doesnt run . So i am asking you why that happends,where is the error ? I realy need this help,thanks to all ! Application Files : http://rapidshare.com/files/220792142/App.rar.html I Get some errors like : [Linker error] undefined reference to `[emailprotected]' [Linker error] undefined reference to `[emailprotected]' [Linker error] undefined reference to `[emailprotected]' [Linker error] undefined reference to `[emailprotected]' ld returned 1 exit status Is This A Good Question/Topic? 0 Back to top MultiQuote Quote + Reply Replies To: C++ Application Compiling #2 janotte code > sword Reputation: 990 Posts: 5,141 Joined: 28-September 06 Re: C++ Application Compiling Posted 13 April 2009 - 05:46 AM There is a library missing from your build path. Do you understand the concept of libraries / header files / etc? Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #3 XTRobot New D.I.C Head Reputation: 0 Posts: 5 Joined: 03-April 09 Re: C++ Application Compiling Posted 13 April 2009 - 05:50 AM Nop :S But i think that the header files should be in the same folder where the code file is. But maybe i am wrong,can you tell me please I priciate that ! Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #4 janotte code > sword Reputation: 990 Posts: 5,141 Joined: 28-September 06 Re: C++ Application Compiling Posted 13 April 2009 - 05:52 AM Sorry, I'm not visiting the link, downloading and compiling unknown code etc but someone else might help you with that. Best of luck. Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #5 XTRobot New D.I.C Head Reputation: 0 Posts: 5 Joined: 03-April 09 Re: C++ Application Compiling Posted 13 April 2009 - 06:15 AM There is no need to worry about piracy,this code is legal,it is part from one tutorial,you can see that tutorial here : http://www.winprog.org/tutorial/ And i downloaded the code from there I hope you understand me Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #9 JackOfAllTrades Saucy! Reputation: 6243 Posts: 24,012 Joined: 23-August 08 Re: C++ Application Co