Author Topic: missing crtbegin.o only in codeblocks with LD  (Read 3661 times)

Offline hckr83

  • Multiple posting newcomer
  • *
  • Posts: 38
missing crtbegin.o only in codeblocks with LD
« on: November 18, 2007, 06:52:50 am »
Ok, so I upgraded to the latest nightly(nov 15) and now I have this problem, but I don't think it is soemthing with the nightly...

I use a makefile to build my project, when I press compile, everything works until it gets to linking, and then it says "crtbegin.o not found" but the strange part is that it will make fine if I run it from the command prompt...

I really do not see how codeblocks is interferring with this because the path var seems to not be affected..

what could the problem be?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: missing crtbegin.o only in codeblocks with LD
« Reply #1 on: November 18, 2007, 07:41:14 pm »
Compiler miss-installed, but since you say it works from the command line this is not likely.

Code::Blocks miss-configured is the next possibility.

Note, if running windows Vista, then that could be the cause.
( http://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista )

What compiler and compiler version? MinGW GCC 3.4.5 MinGW GCC 4.2.1 etc.

What is your compiler installation folder? C:\MinGW

Tim S

 
« Last Edit: November 18, 2007, 07:44:28 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline hckr83

  • Multiple posting newcomer
  • *
  • Posts: 38
Re: missing crtbegin.o only in codeblocks with LD
« Reply #2 on: November 18, 2007, 08:02:51 pm »
3.4.5 and C:\MinGW

I am running Vista, but got it all working...

I was using a nightly from September sometime and it worked, but this new one doesn't...possibly a bug in the nightly?

edit:
I was using revision 4241
« Last Edit: November 18, 2007, 08:16:39 pm by hckr83 »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: missing crtbegin.o only in codeblocks with LD
« Reply #3 on: November 18, 2007, 09:09:07 pm »
Did you verify that the additional paths are still correct?

And, in your case the Linker Search Directory must be checked and the proper value put in.

Code
C:\MinGW\lib\gcc\mingw32\3.4.5


Note, makefile builds are not used by the devs much, so they might be broken.

Tim S
« Last Edit: November 18, 2007, 09:15:27 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline hckr83

  • Multiple posting newcomer
  • *
  • Posts: 38
Re: missing crtbegin.o only in codeblocks with LD
« Reply #4 on: November 19, 2007, 12:43:55 am »
Did you verify that the additional paths are still correct?

And, in your case the Linker Search Directory must be checked and the proper value put in.

Code
C:\MinGW\lib\gcc\mingw32\3.4.5


Note, makefile builds are not used by the devs much, so they might be broken.

Tim S

I just don't quite understand how it can break makefile builds, as they are independent of everything but the binary search directory...(and it may even be independent of it) for now, I'm keeping to the old version I was using until this gets fixed...