Author Topic: Winxp/GCC: Include directories question  (Read 11011 times)

Offline laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
Winxp/GCC: Include directories question
« on: July 27, 2007, 02:51:31 pm »
Hi
i'm trying to use the GCC compiler on winxp and i'm having a bit of trouble. codeblocks isnt finding string.h but C:\MingW\include is set by default in my compiler settings.

do i need to use the microsoft platform sdk or something?

Offline laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Winxp/GCC: Include directories question
« Reply #1 on: July 27, 2007, 09:03:06 pm »
it is

Offline laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Winxp/GCC: Include directories question
« Reply #2 on: July 27, 2007, 11:33:01 pm »
yeah i think those are empty i'll work on that and let you know what happens
thanks.

Offline laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Winxp/GCC: Include directories question
« Reply #3 on: July 28, 2007, 01:51:24 am »
ok i did it. minus the wx stuff cause i don't have wx iinstalled. and i'm still getting the same error.
one thing that i did notice was that the Environment Variables in Environment Settings is empty.
is that a problem?

Offline laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Winxp/GCC: Include directories question
« Reply #4 on: July 28, 2007, 06:12:51 am »
maybe this will help?


Quote
-------------- Build: Release in Win32hello ---------------
Compiling: main.cpp
In file included from C:/MinGW/include/windef.h:246,
                 from C:/MinGW/include/windows.h:48,
                 from C:\Documents and Settings\esiadmin\My Documents\Programming\Win32hello\main.cpp:1:
C:/MinGW/include/winnt.h:37:20: string.h: No such file or directory
In file included from C:/MinGW/include/ole2.h:9,
                 from C:/MinGW/include/windows.h:111,
                 from C:\Documents and Settings\esiadmin\My Documents\Programming\Win32hello\main.cpp:1:
C:/MinGW/include/objbase.h:12:20: stdlib.h: No such file or directory
In file included from C:/MinGW/include/objbase.h:72,
                 from C:/MinGW/include/ole2.h:9,
                 from C:/MinGW/include/windows.h:111,
                 from C:\Documents and Settings\esiadmin\My Documents\Programming\Win32hello\main.cpp:1:
C:/MinGW/include/unknwn.h:17: error: `size_t' was not declared in this scope
In file included from C:/MinGW/include/ole2.h:9,
                 from C:/MinGW/include/windows.h:111,
                 from C:\Documents and Settings\esiadmin\My Documents\Programming\Win32hello\main.cpp:1:
C:/MinGW/include/objbase.h: In function `BOOL IsEqualGUID(const GUID&, const GUID&)':
C:/MinGW/include/objbase.h:77: error: `memcmp' was not declared in this scope
C:/MinGW/include/objbase.h: In function `BOOL operator==(const GUID&, const GUID&)':
C:/MinGW/include/objbase.h:79: error: `memcmp' was not declared in this scope
Process terminated with status 1 (0 minutes, 1 seconds)
5 errors, 0 warnings
 

Offline laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Winxp/GCC: Include directories question
« Reply #5 on: July 28, 2007, 06:18:51 pm »
your package worked!!! wtf!!
thanks a lot man :) that's really crazy! what's so special about your package?
i didn't put codeblocks or my projects in c: yet but i will.

can you recommend a way for me to install wx? cause i have a book on cross-platform wx programming that i plan to start soon

Offline laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Winxp/GCC: Include directories question
« Reply #6 on: July 28, 2007, 08:43:11 pm »
wow.
i can't thank you enough!!
why are all those packages on your esnips site?(though i must admit, it's the most useful thing i've seen so far) :mrgreen:

titocosa

  • Guest
Re: Winxp/GCC: Include directories question
« Reply #7 on: July 31, 2007, 07:40:27 pm »
to 20-40

I´m newbie and I´m trying to learn wxwidgets

I´ve downloaded  "codeblocks-1.0rc2_mingw.exe", july 30th nigthly, and wxwidgets-2.8.4

Do I need to download your "mingw-runtime-3.12+win32api-3.9_20-40.rar" or I can compile it using codeblocks mingw ?

I´ve tried using c::b mingw, compilation success, but when I want to create a new project in C::B  I have the following error message
"a matching configuration cannot be found in the wxwidgets directory you specified
this means that debug target of your project will not build" (the same to release)

codeblocks and wxwidgets are in c:\development
and the following misconfiguration

thanks in advance

[attachment deleted by admin]
« Last Edit: July 31, 2007, 07:50:07 pm by titocosa »

roland

  • Guest
Re: Winxp/GCC: Include directories question
« Reply #8 on: July 31, 2007, 07:57:43 pm »
I find it funny how after all these years, spaces in paths is still a problem. Would it really be such a complicated fix? I'm a n00b so, what do I know. But I would think it would be difficult to take MinGW seriously as a development platform if it doesn't even know what to do when it encounters a space here and there...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Winxp/GCC: Include directories question
« Reply #9 on: August 01, 2007, 01:46:47 am »
I find it funny how after all these years, spaces in paths is still a problem. Would it really be such a complicated fix? I'm a n00b so, what do I know. But I would think it would be difficult to take MinGW seriously as a development platform if it doesn't even know what to do when it encounters a space here and there...

I think you can not take MS windows seriously since you can not have a file name New.txt and another named new.txt.

Note, parts of MinGW does OK with spaces in the path other parts do not (as of the last time I tried it, a few years back).

Tim S
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 laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Winxp/GCC: Include directories question
« Reply #10 on: August 05, 2007, 04:15:19 am »
this is probably a stupid question, but can you compile java with codeblocks? :D

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: Winxp/GCC: Include directories question
« Reply #11 on: August 05, 2007, 11:25:15 am »
this is probably a stupid question, but can you compile java with codeblocks? :D
Yes, that is a stupid question, since c::b is not a compiler  :wink:
You could use custom makefiles to invoke the java compiler. But why not use eclipse? It's perfect for java.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Winxp/GCC: Include directories question
« Reply #12 on: August 05, 2007, 12:46:20 pm »
It's not a stupid question, actually. Although Code::Blocks is not explicitely made for Java, you can certainly use it for that purpose. Of course, a specialised tool like Eclipse will offer much better functionality (for example code completion for the standard library classes, etc).

If you use gcj (or what is the gcc java compiler called?), then you shouldn't need to do anything at all. All gcc backends (C, C++, Ada, Fortran, Java, ...) work the same, controlled by the same frontend. This is one thing why gcc is so darn cool.

If you want to use Sun's toolchain, you'll have to write a compiler plugin specialised for that purpose. I don't think we have anything suitable at the present time. It shouldn't take but a dozen lines of code modifications in an existing compiler plugin, though.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Winxp/GCC: Include directories question
« Reply #13 on: August 05, 2007, 04:59:48 pm »
cool, would be nice to get that working, but i'm not really sure that i could be the one to make that mod.

svaens

  • Guest
Re: Winxp/GCC: Include directories question
« Reply #14 on: August 21, 2007, 12:09:40 pm »
Hi,
Yeah. I would also like to be able to consider code::blocks as my IDE for java also.
I had a quick try at setting it up, but code::blocks seems firmly set to c/c++.....
I think perhaps if i would give my .java files a .cpp extension, i could trick it in to compiling the thing (with the gcj compiler, which I have set up as the selected compiler via the 'Global Compiler Settings ->Toolchain executables')

However, i don't want to have to 'trick' my IDE. I just want to use it. It would be nice.

Some have said 'why not just use eclipse' if you want an IDE for java.
Well, the reason I did not want to use eclipse for Java compilation is because Java is too slow. Why else do I want to be native compiling with GCJ, if not because I did not want the penalties of going through the JRE. Eclipse uses too many resources, and I never wanted to have to use it. I did not want to compile Java into anything but 'Native' (but i am interested in using the Java language). Hence my interest in using code::blocks, as a potential non-specific code compiler. It would be nice.

Do I have to trick code::blocks to compile my o/s native java app?
If yes, well, then I think i'll go somewhere else then.
If yes BUT, in the future code::blocks will be more flexible in this, then, i'll stick around.
If 'No' (I am currently doing something wrong in the setup). Then even better. Please help me out!

Kind regards,

svaens