Skip to content

Some Correction

November 1, 2007

After switching to Code::Blocks, I then realize it is a bug of MinGW and not of Dev-C++’s. The same bugfix too applies to Code::Blocks only with a few difference in the user interface.

For Code::Blocks the directories can be found under Settings -> Compiler. (version 1.0 RC2) Just replace\Dev-Cpp\ with \CodeBlocks\.

After that just follow this link if you still having problem with Code::Blocks:
http://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista

Hope I have clear things up.


Here is a snip that tell us why “ld: XXXXXX.o: No such file: No such file or directory” happens

 

g++.exe -LC:\CodeBlocks\lib -LC:\CodeBlocks\lib\gcc\mingw32\3.4.5 -o C:\Users\XXX\Projects\HelloWorldConsole\console.exe .objs\main.o -s -Wl,–verbose
GNU ld version 2.15.94 20050118
Supported emulations:
i386pe
using internal linker script:
==================================================
/* Default linker script, for normal executables */
OUTPUT_FORMAT(pei-i386)
SEARCH_DIR(“/mingw/mingw32/lib”); SEARCH_DIR(“/mingw/lib”); SEARCH_DIR(“/usr/local/lib”); SEARCH_DIR(“/lib”); SEARCH_DIR(“/usr/lib”);
ENTRY(_mainCRTStartup)
SECTIONS
{
/* Make the virtual address and file offset synced if the alignment is

….

Advertisements

From → C++, Coding

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: