[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'crtbegin.o' not found using Bloodshed GNU compiler
From: |
Guy Harrison |
Subject: |
Re: 'crtbegin.o' not found using Bloodshed GNU compiler |
Date: |
Sun, 06 Feb 2005 08:00:18 GMT |
User-agent: |
KNode/0.8.1 |
Tracy Yucikas wrote:
> Greetings: (and a subued "help" )
>
>
> I'm a (maybe less than) novice programmer taking an intro to C/C++
> programming class.
>
> Problem is I downloaded Bloodshed gnu package and can compile "C" programs
> but C++ gives me an error message
>
> "cannot open crtbegin.o No such file or directory"
I think that's one for the Bloodshed folks.
> I'm using win xp. My teacher said to try asking on a newsgroup to
> see if anyone would probably have knowledge of what I'm doing wrong.
>
> any help would be greatly appreciated.
If you can get at the compiler directly then we might be able to give hints.
Essentially what required is for you to be able to pass -v flag to g++ and
be able to trap *all* the output. Near the end where g++ invokes the linker
you'll see crtbegin.o mentioned. Check that against where it really is.
Note that if you have multiple gcc versions installed you'll have multiple
crtbegin.o files. Usually they're under a path that follows a scheme such
as this...
*/lib/gcc*/[target]/[version]/crtbegin.o
...for example...
/win/d/App/Borland/CBX/mingw/lib/gcc-lib/mingw32/3.2/crtbegin.o
/win/e/cygwin/lib/gcc-lib/i686-pc-cygwin/3.3.3/crtbegin.o
/win/e/cygwin/lib/gcc-lib/i686-pc-mingw32/3.3.1/crtbegin.o
/win/e/cygwin/lib/gcc-lib/i686-pc-mingw32/3.3.3/crtbegin.o
...the above being unix paths of course. If I were in windows the last item
would be at...
e:\cygwin\lib\gcc-lib\i686-pc-mingw32\3.3.3\crtbegin.o