Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Problems compiling HELLOWORLD ¿??¿(compiler doesn't see included libraries )
Problems compiling HELLOWORLD ¿??¿ [message #794711] Thu, 09 February 2012 16:04 Go to next message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
I have fix one problem with iostream, but still I have two errors in HELLO WORLD ¿?¿?¿

***********
Description Resource Path Location Type
Symbol 'cout' could not be resolved HelloWorld.cpp /HelloWorld/src line 13 Semantic Error
Description Resource Path Location Type
Symbol 'endl' could not be resolved HelloWorld.cpp /HelloWorld/src line 13 Semantic Error
***********

When I compile I have this two errors. In iostream I find a warning in c++config.h and it says that that file is not included. This is not true because I include its folder (c:/WinGW/lib/gcc/mingw32/4.6.2/include/c++/mingw32/bits/c++config.h).

On the other hand the console says:

**** Internal Builder is used for build ****
g++ -IC:\MinGW\lib\gcc\mingw32\4.6.2\include\c++ -IC:\MinGW\lib\gcc\mingw32\4.6.2\include\c++\mingw32\bits -O0 -g3 -Wall -c -fmessage-length=0 -o src\HelloWorld.o ..\src\HelloWorld.cpp
g++ -LC:\MinGW\lib -LC:\MinGW\msys\1.0\lib -LC:\MinGW\lib\gcc\mingw32 -o HelloWorld.exe src\HelloWorld.o
Build complete for project HelloWorld
Time consumed: 295 ms.

So, it seems there is not error

This has not sense for me!!!

Any idea? please

Thanks in advance
Re: Problems compiling HELLOWORLD ¿??¿ [message #794717 is a reply to message #794711] Thu, 09 February 2012 16:09 Go to previous messageGo to next message
Harry Houdini is currently offline Harry HoudiniFriend
Messages: 142
Registered: February 2010
Senior Member
Please provide the code.
Re: Problems compiling HELLOWORLD ¿??¿ [message #794718 is a reply to message #794711] Thu, 09 February 2012 16:13 Go to previous messageGo to next message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
Sorry, I'm new in this forum.
What do you mean with code?
Re: Problems compiling HELLOWORLD ¿??¿ [message #794927 is a reply to message #794718] Thu, 09 February 2012 21:50 Go to previous messageGo to next message
Trueman C is currently offline Trueman CFriend
Messages: 8
Registered: February 2011
Junior Member
'code' does mean what is written inside your hello world, c++ and precompiler-code!

I'm shure you did it right, you got an exe-file, didn't you?

To my mind some strange things happen within CDT.

You change some things that you see but if you look them up in all those config- and project- and settings-files, you find, that they are not really changed.

Did you define all symbols correctly?

Did you define in Project-settings for c and c++

Always clean and build the whole workspace.
Re: Problems compiling HELLOWORLD ¿??¿ [message #795233 is a reply to message #794927] Fri, 10 February 2012 08:23 Go to previous messageGo to next message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
ok, tahnk you. I didn't post it because is the example of eclipse, but here is it

CODE:

//============================================================================
// Name : HelloWorld.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
using namespace std;

int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}


PROBLEMS

***********
Description Resource Path Location Type
Symbol 'cout' could not be resolved HelloWorld.cpp /HelloWorld/src line 13 Semantic Error
Description Resource Path Location Type
Symbol 'endl' could not be resolved HelloWorld.cpp /HelloWorld/src line 13 Semantic Error
***********

Compiler information:

**** Internal Builder is used for build ****
g++ -IC:\MinGW\lib\gcc\mingw32\4.6.2\include\c++ -IC:\MinGW\lib\gcc\mingw32\4.6.2\include\c++\mingw32\bits -O0 -g3 -Wall -c -fmessage-length=0 -o src\HelloWorld.o ..\src\HelloWorld.cpp
g++ -LC:\MinGW\lib -LC:\MinGW\msys\1.0\lib -LC:\MinGW\lib\gcc\mingw32 -o HelloWorld.exe src\HelloWorld.o
Build complete for project HelloWorld
Time consumed: 295 ms.


1. So you are right, I get an .exe that it works, but I still have the errors?
2. I didn't include the symbols by my own, they were included when headers were added in ProjectProperties/Path&Symbols in both (C and C++ and also in Asembly). (It would be crazy to include all symbol by hand for every project?)
3. I include same libraries in Settings for GCC C compiler, GCC C++ compiler and MinGW C++ Linker

So, having include "iostream" I edite it. There are three includes in "iostream":
#include <bits/c++config.h>
#include <ostream>
#include <istream>
And I can see a warning/error in #include <bits/c++config.h>. This .h have been included in \MinGW\lib\gcc\mingw32\4.6.2\include\c++\mingw32\bits (look compiler info). I try to open it, form the right window of eclipse "Outline", and eclipse says that "Not include files were found that matched that name". But this is not true, in the tree of ProjectExplorer I can find it and open it, so is included, so eclipse would have to find it. ¿?

I don't understand what is wrong?
I am learning C++ and eclipse CDT right now, but this is the most difficult HELLO WORLD compilation I have seen ever!!

Thank you again
Re: Problems compiling HELLOWORLD ¿??¿ [message #795245 is a reply to message #795233] Fri, 10 February 2012 08:40 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
What you see are errors from the Eclipse indexer used for code analysis. It does not find some includes. This has nothing to do with the compiler!

There is no need to add system includes manually.
1) Create a new Hello World project
2) Select the correct toolchain (MinGW)

Does it work now? If not I need some more info to help you.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Problems compiling HELLOWORLD ¿??¿ [message #795288 is a reply to message #795245] Fri, 10 February 2012 09:41 Go to previous messageGo to next message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
No, it doesn't work. Ok, it works but I have the same problems
So, my HelloWorld2 (in Project explorer)is:

*********************************
HelloWorld2 (with errors)
Binaries
HelloWorld2.exe
src (errors)
HelloWorld2.cpp (errors)
Debug
*********************************

First of all, it doesn't appear Includes, as in the example of the Help

In the Editor:
************************************************************************************************
//============================================================================
// Name : HelloWorld2.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream> Here I have an " ? "
using namespace std; Here I have an Error (Symbol 'std' could not be resolved'

int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!! Here I have 3 Errors(Symbol 'cout, endl' could not be resolved'
return 0;
}

******************************************************************************************************

In console:
***********************************************************************************
**** Rebuild of configuration Debug for project HelloWorld2 ****

**** Internal Builder is used for build ****
g++ -O0 -g3 -Wall -c -fmessage-length=0 -o src\HelloWorld2.o ..\src\HelloWorld2.cpp
g++ -o HelloWorld2.exe src\HelloWorld2.o
Build complete for project HelloWorld2
Time consumed: 280 ms.
***********************************************************************************

In the Outline:
iostream Here I have an Error " ! "
std
main Here I have an Error " red x "


I don't know if you need more information
Smile
Re: Problems compiling HELLOWORLD ¿??¿ [message #795312 is a reply to message #795288] Fri, 10 February 2012 10:17 Go to previous messageGo to next message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
I forgot to tell you something:
That was the same problem I had in the first HelloWorld I did. I fixed some problems adding in ProjectProperties/Path&Symbols the "includes" in both C and C++:
\MinGW\lib\gcc\mingw32\4.6.2\include\c++
\MinGW\lib\gcc\mingw32\4.6.2\include\c++\mingw32\bits

Re: Problems compiling HELLOWORLD ¿??¿ [message #795440 is a reply to message #795312] Fri, 10 February 2012 13:27 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
guillermo roman wrote on Fri, 10 February 2012 11:17
I forgot to tell you something:
That was the same problem I had in the first HelloWorld I did. I fixed some problems adding in ProjectProperties/Path&Symbols the "includes" in both C and C++:
\MinGW\lib\gcc\mingw32\4.6.2\include\c++
\MinGW\lib\gcc\mingw32\4.6.2\include\c++\mingw32\bits


As I said before there is no need to manually add the include paths. Eclipse should find them automatically. So something is wrong in your setup.
1) Select your project and choose project properties from the context menu
2) Goto C/C++ Build->Discovery Options
3) at the bottom of this page enable the option "Show output in a dedicated console..."
3) Clean your project and rebuild it
4) Post the output of the build console here


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Problems compiling HELLOWORLD ¿??¿ [message #795444 is a reply to message #795440] Fri, 10 February 2012 13:30 Go to previous messageGo to next message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
here is it:

g++ -E -P -v -dD C:/Users/Guillermo Roman/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp
Usando especificaciones internas.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.6.1/lto-wrapper.exe
Objetivo: mingw32
Configurado con: ../gcc-4.6.1/configure --enable-languages=c,c++,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Modelo de hilos: win32
gcc versión 4.6.1 (GCC)
COLLECT_GCC_OPTIONS='-E' '-P' '-v' '-dD' '-shared-libgcc' '-mtune=i386' '-march=i386'
c:/mingw/bin/../libexec/gcc/mingw32/4.6.1/cc1plus.exe -E -quiet -v -P -iprefix c:\mingw\bin\../lib/gcc/mingw32/4.6.1/ C:/Users/Guillermo Roman/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp -mtune=i386 -march=i386 -dD
#define __STDC__ 1
#define __cplusplus 1
#define __STDC_HOSTED__ 1
#define __GNUC__ 4
#define __GNUC_MINOR__ 6
#define __GNUC_PATCHLEVEL__ 1
#define __VERSION__ "4.6.1"
#define __FINITE_MATH_ONLY__ 0
#define __SIZEOF_INT__ 4
#define __SIZEOF_LONG__ 4
#define __SIZEOF_LONG_LONG__ 8
#define __SIZEOF_SHORT__ 2
#define __SIZEOF_FLOAT__ 4
#define __SIZEOF_DOUBLE__ 8
#define __SIZEOF_LONG_DOUBLE__ 12
#define __SIZEOF_SIZE_T__ 4
#define __CHAR_BIT__ 8
#define __BIGGEST_ALIGNMENT__ 16
#define __ORDER_LITTLE_ENDIAN__ 1234
#define __ORDER_BIG_ENDIAN__ 4321
#define __ORDER_PDP_ENDIAN__ 3412
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __SIZEOF_POINTER__ 4
#define __GNUG__ 4
#define __SIZE_TYPE__ unsigned int
#define __PTRDIFF_TYPE__ int
#define __WCHAR_TYPE__ short unsigned int
#define __WINT_TYPE__ short unsigned int
#define __INTMAX_TYPE__ long long int
#define __UINTMAX_TYPE__ long long unsigned int
#define __CHAR16_TYPE__ short unsigned int
#define __CHAR32_TYPE__ unsigned int
#define __SIG_ATOMIC_TYPE__ int
#define __INT8_TYPE__ signed char
#define __INT16_TYPE__ short int
#define __INT32_TYPE__ int
#define __INT64_TYPE__ long long int
#define __UINT8_TYPE__ unsigned char
#define __UINT16_TYPE__ short unsigned int
#define __UINT32_TYPE__ unsigned int
#define __UINT64_TYPE__ long long unsigned int
#define __INT_LEAST8_TYPE__ signed char
#define __INT_LEAST16_TYPE__ short int
#define __INT_LEAST32_TYPE__ int
#define __INT_LEAST64_TYPE__ long long int
#define __UINT_LEAST8_TYPE__ unsigned char
#define __UINT_LEAST16_TYPE__ short unsigned int
#define __UINT_LEAST32_TYPE__ unsigned int
#define __UINT_LEAST64_TYPE__ long long unsigned int
#define __INT_FAST8_TYPE__ signed char
#define __INT_FAST16_TYPE__ short int
#define __INT_FAST32_TYPE__ int
#define __INT_FAST64_TYPE__ long long int
#define __UINT_FAST8_TYPE__ unsigned char
#define __UINT_FAST16_TYPE__ short unsigned int
#define __UINT_FAST32_TYPE__ unsigned int
#define __UINT_FAST64_TYPE__ long long unsigned int
#define __INTPTR_TYPE__ int
#define __UINTPTR_TYPE__ unsigned int
#define __GXX_WEAK__ 1
#define __DEPRECATED 1
#define __GXX_RTTI 1
#define __EXCEPTIONS 1
#define __GXX_ABI_VERSION 1002
#define __SCHAR_MAX__ 127
#define __SHRT_MAX__ 32767
#define __INT_MAX__ 2147483647
#define __LONG_MAX__ 2147483647L
#define __LONG_LONG_MAX__ 9223372036854775807LL
#define __WCHAR_MAX__ 65535
#define __WCHAR_MIN__ 0
#define __WINT_MAX__ 65535
#define __WINT_MIN__ 0
#define __PTRDIFF_MAX__ 2147483647
#define __SIZE_MAX__ 4294967295U
#define __INTMAX_MAX__ 9223372036854775807LL
#define __INTMAX_C(c) c ## LL
#define __UINTMAX_MAX__ 18446744073709551615ULL
#define __UINTMAX_C(c) c ## ULL
#define __SIG_ATOMIC_MAX__ 2147483647
#define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)
#define __INT8_MAX__ 127
#define __INT16_MAX__ 32767
#define __INT32_MAX__ 2147483647
#define __INT64_MAX__ 9223372036854775807LL
#define __UINT8_MAX__ 255
#define __UINT16_MAX__ 65535
#define __UINT32_MAX__ 4294967295U
#define __UINT64_MAX__ 18446744073709551615ULL
#define __INT_LEAST8_MAX__ 127
#define __INT8_C(c) c
#define __INT_LEAST16_MAX__ 32767
#define __INT16_C(c) c
#define __INT_LEAST32_MAX__ 2147483647
#define __INT32_C(c) c
#define __INT_LEAST64_MAX__ 9223372036854775807LL
#define __INT64_C(c) c ## LL
#define __UINT_LEAST8_MAX__ 255
#define __UINT8_C(c) c
#define __UINT_LEAST16_MAX__ 65535
#define __UINT16_C(c) c
#define __UINT_LEAST32_MAX__ 4294967295U
#define __UINT32_C(c) c ## U
#define __UINT_LEAST64_MAX__ 18446744073709551615ULL
#define __UINT64_C(c) c ## ULL
#define __INT_FAST8_MAX__ 127
#define __INT_FAST16_MAX__ 32767
#define __INT_FAST32_MAX__ 2147483647
#define __INT_FAST64_MAX__ 9223372036854775807LL
#define __UINT_FAST8_MAX__ 255
#define __UINT_FAST16_MAX__ 65535
#define __UINT_FAST32_MAX__ 4294967295U
#define __UINT_FAST64_MAX__ 18446744073709551615ULL
#define __INTPTR_MAX__ 2147483647
#define __UINTPTR_MAX__ 4294967295U
#define __FLT_EVAL_METHOD__ 2
#define __DEC_EVAL_METHOD__ 2
#define __FLT_RADIX__ 2
#define __FLT_MANT_DIG__ 24
#define __FLT_DIG__ 6
#define __FLT_MIN_EXP__ (-125)
#define __FLT_MIN_10_EXP__ (-37)
se descarta el directorio inexistente "c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../mingw32/include"
#define __FLT_MAX_EXP__ 128
se descarta el directorio duplicado "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include/c++"
#define __FLT_MAX_10_EXP__ 38
se descarta el directorio duplicado "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include/c++/mingw32"
#define __FLT_DECIMAL_DIG__ 9
se descarta el directorio duplicado "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include/c++/backward"
#define __FLT_MAX__ 3.40282346638528859812e+38F
se descarta el directorio duplicado "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include"
#define __FLT_MIN__ 1.17549435082228750797e-38F
se descarta el directorio duplicado "/mingw/lib/gcc/mingw32/4.6.1/../../../../include"
#define __FLT_EPSILON__ 1.19209289550781250000e-7F
se descarta el directorio duplicado "c:/mingw/lib/gcc/../../include"
#define __FLT_DENORM_MIN__ 1.40129846432481707092e-45F
#define __FLT_HAS_DENORM__ 1
#define __FLT_HAS_INFINITY__ 1
se descarta el directorio duplicado "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include-fixed"
#define __FLT_HAS_QUIET_NAN__ 1
se descarta el directorio inexistente "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/../../../../mingw32/include"
#define __DBL_MANT_DIG__ 53
se descarta el directorio duplicado "/mingw/include"
#define __DBL_DIG__ 15
#define __DBL_MIN_EXP__ (-1021)
#define __DBL_MIN_10_EXP__ (-307)
la búsqueda de #include "..." inicia aquí:
#define __DBL_MAX_EXP__ 1024
la búsqueda de #include <...> inicia aquí:
#define __DBL_MAX_10_EXP__ 308
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include/c++
#define __DBL_DECIMAL_DIG__ 17
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include/c++/mingw32
#define __DBL_MAX__ double(1.79769313486231570815e+308L)
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include/c++/backward
#define __DBL_MIN__ double(2.22507385850720138309e-308L)
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include
#define __DBL_EPSILON__ double(2.22044604925031308085e-16L)
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include
#define __DBL_DENORM_MIN__ double(4.94065645841246544177e-324L)
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include-fixed
#define __DBL_HAS_DENORM__ 1
#define __DBL_HAS_INFINITY__ 1
Fin de la lista de búsqueda.
#define __DBL_HAS_QUIET_NAN__ 1
COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/4.6.1/;c:/mingw/bin/../libexec/gcc/;c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/
#define __LDBL_MANT_DIG__ 64
LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/4.6.1/;c:/mingw/bin/../lib/gcc/;c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/lib/;c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../;/mingw/lib/
#define __LDBL_DIG__ 18
COLLECT_GCC_OPTIONS='-E' '-P' '-v' '-dD' '-shared-libgcc' '-mtune=i386' '-march=i386'
#define __LDBL_MIN_EXP__ (-16381)
#define __LDBL_MIN_10_EXP__ (-4931)
#define __LDBL_MAX_EXP__ 16384
#define __LDBL_MAX_10_EXP__ 4932
#define __DECIMAL_DIG__ 21
#define __LDBL_MAX__ 1.18973149535723176502e+4932L
#define __LDBL_MIN__ 3.36210314311209350626e-4932L
#define __LDBL_EPSILON__ 1.08420217248550443401e-19L
#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
#define __LDBL_HAS_DENORM__ 1
#define __LDBL_HAS_INFINITY__ 1
#define __LDBL_HAS_QUIET_NAN__ 1
#define __DEC32_MANT_DIG__ 7
#define __DEC32_MIN_EXP__ (-94)
#define __DEC32_MAX_EXP__ 97
#define __DEC32_MIN__ 1E-95DF
#define __DEC32_MAX__ 9.999999E96DF
#define __DEC32_EPSILON__ 1E-6DF
#define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF
#define __DEC64_MANT_DIG__ 16
#define __DEC64_MIN_EXP__ (-382)
#define __DEC64_MAX_EXP__ 385
#define __DEC64_MIN__ 1E-383DD
#define __DEC64_MAX__ 9.999999999999999E384DD
#define __DEC64_EPSILON__ 1E-15DD
#define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD
#define __DEC128_MANT_DIG__ 34
#define __DEC128_MIN_EXP__ (-6142)
#define __DEC128_MAX_EXP__ 6145
#define __DEC128_MIN__ 1E-6143DL
#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
#define __DEC128_EPSILON__ 1E-33DL
#define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL
#define __REGISTER_PREFIX__
#define __USER_LABEL_PREFIX__ _
#define __GNUC_GNU_INLINE__ 1
#define __NO_INLINE__ 1
#define __WCHAR_UNSIGNED__ 1
#define __GCC_HAVE_DWARF2_CFI_ASM 1
#define __PRAGMA_REDEFINE_EXTNAME 1
#define __SIZEOF_WCHAR_T__ 2
#define __SIZEOF_WINT_T__ 2
#define __SIZEOF_PTRDIFF_T__ 4
#define __i386 1
#define __i386__ 1
#define i386 1
#define __tune_i386__ 1
#define _X86_ 1
#define __stdcall __attribute__((__stdcall__))
#define __fastcall __attribute__((__fastcall__))
#define __thiscall __attribute__((__thiscall__))
#define __cdecl __attribute__((__cdecl__))
#define _stdcall __attribute__((__stdcall__))
#define _fastcall __attribute__((__fastcall__))
#define _thiscall __attribute__((__thiscall__))
#define _cdecl __attribute__((__cdecl__))
#define __GXX_MERGED_TYPEINFO_NAMES 0
#define __GXX_TYPEINFO_EQUALITY_INLINE 0
#define __MSVCRT__ 1
#define __MINGW32__ 1
#define _WIN32 1
#define __WIN32 1
#define __WIN32__ 1
#define WIN32 1
#define __WINNT 1
#define __WINNT__ 1
#define WINNT 1
#define _INTEGRAL_MAX_BITS 64
#define __declspec(x) __attribute__((x))
#define __DECIMAL_BID_FORMAT__ 1
Re: Problems compiling HELLOWORLD ¿??¿ [message #795451 is a reply to message #795444] Fri, 10 February 2012 13:39 Go to previous messageGo to next message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
Translation of some messages that appear in spanish (I don't know why??):
se descarta el directorio duplicado -> discard the duplicate directory
se descarta el directorio inexistente -> discard the nonexistent directory
Fin de la lista de busqueda -> End of search list
Re: Problems compiling HELLOWORLD ¿??¿ [message #795499 is a reply to message #795451] Fri, 10 February 2012 14:41 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
guillermo roman wrote on Fri, 10 February 2012 14:39
Translation of some messages that appear in spanish (I don't know why??):
se descarta el directorio duplicado -> discard the duplicate directory
se descarta el directorio inexistente -> discard the nonexistent directory
Fin de la lista de busqueda -> End of search list

You are using the wrong language. The world is English centric Smile
(just kidding)

I expected this kind of bug. The Eclipse internal scanner expects the gcc output to be in English.
To fix this, force the compiler to use english output when building:
Under "Window -> Preferences -> C/C++ -> Build -> Environment", add two new environment variables "LANG" and "LC_ALL" and set them both to "en_US".

Rebuild your project, and CDT should discover the correct include paths again.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Problems compiling HELLOWORLD ¿??¿ [message #797255 is a reply to message #795499] Mon, 13 February 2012 08:39 Go to previous messageGo to next message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
Quote:
You are using the wrong language. The world is English centric
(just kidding)


Axel, I absolutely agree, but it's not my computer and my boss set it in spanish :\

So, I have add the variables in eclipse and in windows. I also set these varibles in WinGW in its shell(I had to do this, otherwise wasn't chage anythin)
Now CDT discover includes BUT I still have the errors in "std", "cout" and "endl"

I add the code again and the messages of console, where everythin is in english

Thanks

#include <iostream>
using namespace std;

int main() {
	cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
	return 0;
}




--enable-libstdcxx-debug --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.6.1 (GCC)
COLLECT_GCC_OPTIONS='-E' '-P' '-v' '-dD' '-shared-libgcc' '-mtune=i386' '-march=i386'
c:/mingw/bin/../libexec/gcc/mingw32/4.6.1/cc1plus.exe -E -quiet -v -P -iprefix c:\mingw\bin\../lib/gcc/mingw32/4.6.1/ C:/Users/Guillermo Roman/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp -mtune=i386 -march=i386 -dD
#define __STDC__ 1
#define __cplusplus 1
#define __STDC_HOSTED__ 1
#define __GNUC__ 4
#define __GNUC_MINOR__ 6
#define __GNUC_PATCHLEVEL__ 1
#define __VERSION__ "4.6.1"
#define __FINITE_MATH_ONLY__ 0
#define __SIZEOF_INT__ 4
#define __SIZEOF_LONG__ 4
#define __SIZEOF_LONG_LONG__ 8
#define __SIZEOF_SHORT__ 2
#define __SIZEOF_FLOAT__ 4
#define __SIZEOF_DOUBLE__ 8
#define __SIZEOF_LONG_DOUBLE__ 12
#define __SIZEOF_SIZE_T__ 4
#define __CHAR_BIT__ 8
#define __BIGGEST_ALIGNMENT__ 16
#define __ORDER_LITTLE_ENDIAN__ 1234
#define __ORDER_BIG_ENDIAN__ 4321
#define __ORDER_PDP_ENDIAN__ 3412
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __SIZEOF_POINTER__ 4
#define __GNUG__ 4
#define __SIZE_TYPE__ unsigned int
#define __PTRDIFF_TYPE__ int
#define __WCHAR_TYPE__ short unsigned int
#define __WINT_TYPE__ short unsigned int
#define __INTMAX_TYPE__ long long int
#define __UINTMAX_TYPE__ long long unsigned int
#define __CHAR16_TYPE__ short unsigned int
#define __CHAR32_TYPE__ unsigned int
#define __SIG_ATOMIC_TYPE__ int
#define __INT8_TYPE__ signed char
#define __INT16_TYPE__ short int
#define __INT32_TYPE__ int
#define __INT64_TYPE__ long long int
#define __UINT8_TYPE__ unsigned char
#define __UINT16_TYPE__ short unsigned int
#define __UINT32_TYPE__ unsigned int
#define __UINT64_TYPE__ long long unsigned int
#define __INT_LEAST8_TYPE__ signed char
#define __INT_LEAST16_TYPE__ short int
#define __INT_LEAST32_TYPE__ int
#define __INT_LEAST64_TYPE__ long long int
#define __UINT_LEAST8_TYPE__ unsigned char
#define __UINT_LEAST16_TYPE__ short unsigned int
#define __UINT_LEAST32_TYPE__ unsigned int
#define __UINT_LEAST64_TYPE__ long long unsigned int
#define __INT_FAST8_TYPE__ signed char
#define __INT_FAST16_TYPE__ short int
#define __INT_FAST32_TYPE__ int
#define __INT_FAST64_TYPE__ long long int
#define __UINT_FAST8_TYPE__ unsigned char
#define __UINT_FAST16_TYPE__ short unsigned int
#define __UINT_FAST32_TYPE__ unsigned int
#define __UINT_FAST64_TYPE__ long long unsigned int
#define __INTPTR_TYPE__ int
#define __UINTPTR_TYPE__ unsigned int
#define __GXX_WEAK__ 1
#define __DEPRECATED 1
#define __GXX_RTTI 1
#define __EXCEPTIONS 1
#define __GXX_ABI_VERSION 1002
#define __SCHAR_MAX__ 127
#define __SHRT_MAX__ 32767
#define __INT_MAX__ 2147483647
#define __LONG_MAX__ 2147483647L
#define __LONG_LONG_MAX__ 9223372036854775807LL
#define __WCHAR_MAX__ 65535
#define __WCHAR_MIN__ 0
#define __WINT_MAX__ 65535
#define __WINT_MIN__ 0
#define __PTRDIFF_MAX__ 2147483647
#define __SIZE_MAX__ 4294967295U
#define __INTMAX_MAX__ 9223372036854775807LL
#define __INTMAX_C(c) c ## LL
#define __UINTMAX_MAX__ 18446744073709551615ULL
#define __UINTMAX_C(c) c ## ULL
#define __SIG_ATOMIC_MAX__ 2147483647
#define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)
#define __INT8_MAX__ 127
#define __INT16_MAX__ 32767
#define __INT32_MAX__ 2147483647
#define __INT64_MAX__ 9223372036854775807LL
#define __UINT8_MAX__ 255
#define __UINT16_MAX__ 65535
#define __UINT32_MAX__ 4294967295U
#define __UINT64_MAX__ 18446744073709551615ULL
#define __INT_LEAST8_MAX__ 127
#define __INT8_C(c) c
#define __INT_LEAST16_MAX__ 32767
#define __INT16_C(c) c
#define __INT_LEAST32_MAX__ 2147483647
#define __INT32_C(c) c
#define __INT_LEAST64_MAX__ 9223372036854775807LL
#define __INT64_C(c) c ## LL
#define __UINT_LEAST8_MAX__ 255
#define __UINT8_C(c) c
#define __UINT_LEAST16_MAX__ 65535
#define __UINT16_C(c) c
#define __UINT_LEAST32_MAX__ 4294967295U
#define __UINT32_C(c) c ## U
#define __UINT_LEAST64_MAX__ 18446744073709551615ULL
#define __UINT64_C(c) c ## ULL
#define __INT_FAST8_MAX__ 127
#define __INT_FAST16_MAX__ 32767
#define __INT_FAST32_MAX__ 2147483647
#define __INT_FAST64_MAX__ 9223372036854775807LL
#define __UINT_FAST8_MAX__ 255
#define __UINT_FAST16_MAX__ 65535
#define __UINT_FAST32_MAX__ 4294967295U
#define __UINT_FAST64_MAX__ 18446744073709551615ULL
#define __INTPTR_MAX__ 2147483647
#define __UINTPTR_MAX__ 4294967295U
#define __FLT_EVAL_METHOD__ 2
#define __DEC_EVAL_METHOD__ 2
#define __FLT_RADIX__ 2
#define __FLT_MANT_DIG__ 24
#define __FLT_DIG__ 6
#define __FLT_MIN_EXP__ (-125)
#define __FLT_MIN_10_EXP__ (-37)
#define __FLT_MAX_EXP__ 128
#define __FLT_MAX_10_EXP__ 38
#define __FLT_DECIMAL_DIG__ 9
#define __FLT_MAX__ 3.40282346638528859812e+38F
#define __FLT_MIN__ 1.17549435082228750797e-38F
#define __FLT_EPSILON__ 1.19209289550781250000e-7F
#define __FLT_DENORM_MIN__ 1.40129846432481707092e-45F
#define __FLT_HAS_DENORM__ 1
#define __FLT_HAS_INFINITY__ 1
#define __FLT_HAS_QUIET_NAN__ 1
#define __DBL_MANT_DIG__ 53
#define __DBL_DIG__ 15
#define __DBL_MIN_EXP__ (-1021)
#define __DBL_MIN_10_EXP__ (-307)
#define __DBL_MAX_EXP__ 1024
#define __DBL_MAX_10_EXP__ 308
#define __DBL_DECIMAL_DIG__ 17
#define __DBL_MAX__ double(1.79769313486231570815e+308L)
#define __DBL_MIN__ double(2.22507385850720138309e-308L)
#define __DBL_EPSILON__ double(2.22044604925031308085e-16L)
#define __DBL_DENORM_MIN__ double(4.94065645841246544177e-324L)
#define __DBL_HAS_DENORM__ 1
#define __DBL_HAS_INFINITY__ 1
#define __DBL_HAS_QUIET_NAN__ 1
#define __LDBL_MANT_DIG__ 64
#define __LDBL_DIG__ 18
#define __LDBL_MIN_EXP__ (-16381)
#define __LDBL_MIN_10_EXP__ (-4931)
#define __LDBL_MAX_EXP__ 16384
#define __LDBL_MAX_10_EXP__ 4932
#define __DECIMAL_DIG__ 21
#define __LDBL_MAX__ 1.18973149535723176502e+4932L
#define __LDBL_MIN__ 3.36210314311209350626e-4932L
#define __LDBL_EPSILON__ 1.08420217248550443401e-19L
#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
#define __LDBL_HAS_DENORM__ 1
#define __LDBL_HAS_INFINITY__ 1
#define __LDBL_HAS_QUIET_NAN__ 1
#define __DEC32_MANT_DIG__ 7
#define __DEC32_MIN_EXP__ (-94)
#define __DEC32_MAX_EXP__ 97
#define __DEC32_MIN__ 1E-95DF
#define __DEC32_MAX__ 9.999999E96DF
#define __DEC32_EPSILON__ 1E-6DF
#define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF
#define __DEC64_MANT_DIG__ 16
#define __DEC64_MIN_EXP__ (-382)
#define __DEC64_MAX_EXP__ 385
#define __DEC64_MIN__ 1E-383DD
#define __DEC64_MAX__ 9.999999999999999E384DD
#define __DEC64_EPSILON__ 1E-15DD
#define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD
ignoring nonexistent directory "c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../mingw32/include"
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include/c++"
#define __DEC128_MANT_DIG__ 34
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include/c++/mingw32"
#define __DEC128_MIN_EXP__ (-6142)
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include/c++/backward"
#define __DEC128_MAX_EXP__ 6145
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include"
#define __DEC128_MIN__ 1E-6143DL
ignoring duplicate directory "/mingw/lib/gcc/mingw32/4.6.1/../../../../include"
#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
ignoring duplicate directory "c:/mingw/lib/gcc/../../include"
#define __DEC128_EPSILON__ 1E-33DL
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include-fixed"
#define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL
ignoring nonexistent directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/../../../../mingw32/include"
#define __REGISTER_PREFIX__
ignoring duplicate directory "/mingw/include"
#define __USER_LABEL_PREFIX__ _
#include "..." search starts here:
#define __GNUC_GNU_INLINE__ 1
#include <...> search starts here:
#define __NO_INLINE__ 1
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include/c++
#define __WCHAR_UNSIGNED__ 1
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include/c++/mingw32
#define __GCC_HAVE_DWARF2_CFI_ASM 1
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include/c++/backward
#define __PRAGMA_REDEFINE_EXTNAME 1
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include
#define __SIZEOF_WCHAR_T__ 2
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include
#define __SIZEOF_WINT_T__ 2
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include-fixed
#define __SIZEOF_PTRDIFF_T__ 4
End of search list.
#define __i386 1
#define __i386__ 1
COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/4.6.1/;c:/mingw/bin/../libexec/gcc/;c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/
#define i386 1
LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/4.6.1/;c:/mingw/bin/../lib/gcc/;c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/lib/;c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../;/mingw/lib/
#define __tune_i386__ 1
COLLECT_GCC_OPTIONS='-E' '-P' '-v' '-dD' '-shared-libgcc' '-mtune=i386' '-march=i386'
#define _X86_ 1
#define __stdcall __attribute__((__stdcall__))
#define __fastcall __attribute__((__fastcall__))
#define __thiscall __attribute__((__thiscall__))
#define __cdecl __attribute__((__cdecl__))
#define _stdcall __attribute__((__stdcall__))
#define _fastcall __attribute__((__fastcall__))
#define _thiscall __attribute__((__thiscall__))
#define _cdecl __attribute__((__cdecl__))
#define __GXX_MERGED_TYPEINFO_NAMES 0
#define __GXX_TYPEINFO_EQUALITY_INLINE 0
#define __MSVCRT__ 1
#define __MINGW32__ 1
#define _WIN32 1
#define __WIN32 1
#define __WIN32__ 1
#define WIN32 1
#define __WINNT 1
#define __WINNT__ 1
#define WINNT 1
#define _INTEGRAL_MAX_BITS 64
#define __declspec(x) __attribute__((x))
#define __DECIMAL_BID_FORMAT__ 1
Re: Problems compiling HELLOWORLD ¿??¿ [message #797258 is a reply to message #795499] Mon, 13 February 2012 08:41 Go to previous messageGo to next message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
Quote:
You are using the wrong language. The world is English centric
(just kidding)


Axel, I absolutely agree, but it's not my computer and my boss set it in spanish Confused

So, I have add the variables in eclipse and in windows. I also set these varibles in WinGW in its shell(I had to do this, otherwise wasn't chage anythin)
Now CDT discover includes BUT I still have the errors in "std", "cout" and "endl"

I add the code again and the messages of console, where everythin is in english

Thanks

#include <iostream>
using namespace std;

int main() {
	cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
	return 0;
}




--enable-libstdcxx-debug --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.6.1 (GCC)
COLLECT_GCC_OPTIONS='-E' '-P' '-v' '-dD' '-shared-libgcc' '-mtune=i386' '-march=i386'
c:/mingw/bin/../libexec/gcc/mingw32/4.6.1/cc1plus.exe -E -quiet -v -P -iprefix c:\mingw\bin\../lib/gcc/mingw32/4.6.1/ C:/Users/Guillermo Roman/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp -mtune=i386 -march=i386 -dD
#define __STDC__ 1
#define __cplusplus 1
#define __STDC_HOSTED__ 1
#define __GNUC__ 4
#define __GNUC_MINOR__ 6
#define __GNUC_PATCHLEVEL__ 1
#define __VERSION__ "4.6.1"
#define __FINITE_MATH_ONLY__ 0
#define __SIZEOF_INT__ 4
#define __SIZEOF_LONG__ 4
#define __SIZEOF_LONG_LONG__ 8
#define __SIZEOF_SHORT__ 2
#define __SIZEOF_FLOAT__ 4
#define __SIZEOF_DOUBLE__ 8
#define __SIZEOF_LONG_DOUBLE__ 12
#define __SIZEOF_SIZE_T__ 4
#define __CHAR_BIT__ 8
#define __BIGGEST_ALIGNMENT__ 16
#define __ORDER_LITTLE_ENDIAN__ 1234
#define __ORDER_BIG_ENDIAN__ 4321
#define __ORDER_PDP_ENDIAN__ 3412
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __SIZEOF_POINTER__ 4
#define __GNUG__ 4
#define __SIZE_TYPE__ unsigned int
#define __PTRDIFF_TYPE__ int
#define __WCHAR_TYPE__ short unsigned int
#define __WINT_TYPE__ short unsigned int
#define __INTMAX_TYPE__ long long int
#define __UINTMAX_TYPE__ long long unsigned int
#define __CHAR16_TYPE__ short unsigned int
#define __CHAR32_TYPE__ unsigned int
#define __SIG_ATOMIC_TYPE__ int
#define __INT8_TYPE__ signed char
#define __INT16_TYPE__ short int
#define __INT32_TYPE__ int
#define __INT64_TYPE__ long long int
#define __UINT8_TYPE__ unsigned char
#define __UINT16_TYPE__ short unsigned int
#define __UINT32_TYPE__ unsigned int
#define __UINT64_TYPE__ long long unsigned int
#define __INT_LEAST8_TYPE__ signed char
#define __INT_LEAST16_TYPE__ short int
#define __INT_LEAST32_TYPE__ int
#define __INT_LEAST64_TYPE__ long long int
#define __UINT_LEAST8_TYPE__ unsigned char
#define __UINT_LEAST16_TYPE__ short unsigned int
#define __UINT_LEAST32_TYPE__ unsigned int
#define __UINT_LEAST64_TYPE__ long long unsigned int
#define __INT_FAST8_TYPE__ signed char
#define __INT_FAST16_TYPE__ short int
#define __INT_FAST32_TYPE__ int
#define __INT_FAST64_TYPE__ long long int
#define __UINT_FAST8_TYPE__ unsigned char
#define __UINT_FAST16_TYPE__ short unsigned int
#define __UINT_FAST32_TYPE__ unsigned int
#define __UINT_FAST64_TYPE__ long long unsigned int
#define __INTPTR_TYPE__ int
#define __UINTPTR_TYPE__ unsigned int
#define __GXX_WEAK__ 1
#define __DEPRECATED 1
#define __GXX_RTTI 1
#define __EXCEPTIONS 1
#define __GXX_ABI_VERSION 1002
#define __SCHAR_MAX__ 127
#define __SHRT_MAX__ 32767
#define __INT_MAX__ 2147483647
#define __LONG_MAX__ 2147483647L
#define __LONG_LONG_MAX__ 9223372036854775807LL
#define __WCHAR_MAX__ 65535
#define __WCHAR_MIN__ 0
#define __WINT_MAX__ 65535
#define __WINT_MIN__ 0
#define __PTRDIFF_MAX__ 2147483647
#define __SIZE_MAX__ 4294967295U
#define __INTMAX_MAX__ 9223372036854775807LL
#define __INTMAX_C(c) c ## LL
#define __UINTMAX_MAX__ 18446744073709551615ULL
#define __UINTMAX_C(c) c ## ULL
#define __SIG_ATOMIC_MAX__ 2147483647
#define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)
#define __INT8_MAX__ 127
#define __INT16_MAX__ 32767
#define __INT32_MAX__ 2147483647
#define __INT64_MAX__ 9223372036854775807LL
#define __UINT8_MAX__ 255
#define __UINT16_MAX__ 65535
#define __UINT32_MAX__ 4294967295U
#define __UINT64_MAX__ 18446744073709551615ULL
#define __INT_LEAST8_MAX__ 127
#define __INT8_C(c) c
#define __INT_LEAST16_MAX__ 32767
#define __INT16_C(c) c
#define __INT_LEAST32_MAX__ 2147483647
#define __INT32_C(c) c
#define __INT_LEAST64_MAX__ 9223372036854775807LL
#define __INT64_C(c) c ## LL
#define __UINT_LEAST8_MAX__ 255
#define __UINT8_C(c) c
#define __UINT_LEAST16_MAX__ 65535
#define __UINT16_C(c) c
#define __UINT_LEAST32_MAX__ 4294967295U
#define __UINT32_C(c) c ## U
#define __UINT_LEAST64_MAX__ 18446744073709551615ULL
#define __UINT64_C(c) c ## ULL
#define __INT_FAST8_MAX__ 127
#define __INT_FAST16_MAX__ 32767
#define __INT_FAST32_MAX__ 2147483647
#define __INT_FAST64_MAX__ 9223372036854775807LL
#define __UINT_FAST8_MAX__ 255
#define __UINT_FAST16_MAX__ 65535
#define __UINT_FAST32_MAX__ 4294967295U
#define __UINT_FAST64_MAX__ 18446744073709551615ULL
#define __INTPTR_MAX__ 2147483647
#define __UINTPTR_MAX__ 4294967295U
#define __FLT_EVAL_METHOD__ 2
#define __DEC_EVAL_METHOD__ 2
#define __FLT_RADIX__ 2
#define __FLT_MANT_DIG__ 24
#define __FLT_DIG__ 6
#define __FLT_MIN_EXP__ (-125)
#define __FLT_MIN_10_EXP__ (-37)
#define __FLT_MAX_EXP__ 128
#define __FLT_MAX_10_EXP__ 38
#define __FLT_DECIMAL_DIG__ 9
#define __FLT_MAX__ 3.40282346638528859812e+38F
#define __FLT_MIN__ 1.17549435082228750797e-38F
#define __FLT_EPSILON__ 1.19209289550781250000e-7F
#define __FLT_DENORM_MIN__ 1.40129846432481707092e-45F
#define __FLT_HAS_DENORM__ 1
#define __FLT_HAS_INFINITY__ 1
#define __FLT_HAS_QUIET_NAN__ 1
#define __DBL_MANT_DIG__ 53
#define __DBL_DIG__ 15
#define __DBL_MIN_EXP__ (-1021)
#define __DBL_MIN_10_EXP__ (-307)
#define __DBL_MAX_EXP__ 1024
#define __DBL_MAX_10_EXP__ 308
#define __DBL_DECIMAL_DIG__ 17
#define __DBL_MAX__ double(1.79769313486231570815e+308L)
#define __DBL_MIN__ double(2.22507385850720138309e-308L)
#define __DBL_EPSILON__ double(2.22044604925031308085e-16L)
#define __DBL_DENORM_MIN__ double(4.94065645841246544177e-324L)
#define __DBL_HAS_DENORM__ 1
#define __DBL_HAS_INFINITY__ 1
#define __DBL_HAS_QUIET_NAN__ 1
#define __LDBL_MANT_DIG__ 64
#define __LDBL_DIG__ 18
#define __LDBL_MIN_EXP__ (-16381)
#define __LDBL_MIN_10_EXP__ (-4931)
#define __LDBL_MAX_EXP__ 16384
#define __LDBL_MAX_10_EXP__ 4932
#define __DECIMAL_DIG__ 21
#define __LDBL_MAX__ 1.18973149535723176502e+4932L
#define __LDBL_MIN__ 3.36210314311209350626e-4932L
#define __LDBL_EPSILON__ 1.08420217248550443401e-19L
#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
#define __LDBL_HAS_DENORM__ 1
#define __LDBL_HAS_INFINITY__ 1
#define __LDBL_HAS_QUIET_NAN__ 1
#define __DEC32_MANT_DIG__ 7
#define __DEC32_MIN_EXP__ (-94)
#define __DEC32_MAX_EXP__ 97
#define __DEC32_MIN__ 1E-95DF
#define __DEC32_MAX__ 9.999999E96DF
#define __DEC32_EPSILON__ 1E-6DF
#define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF
#define __DEC64_MANT_DIG__ 16
#define __DEC64_MIN_EXP__ (-382)
#define __DEC64_MAX_EXP__ 385
#define __DEC64_MIN__ 1E-383DD
#define __DEC64_MAX__ 9.999999999999999E384DD
#define __DEC64_EPSILON__ 1E-15DD
#define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD
ignoring nonexistent directory "c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../mingw32/include"
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include/c++"
#define __DEC128_MANT_DIG__ 34
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include/c++/mingw32"
#define __DEC128_MIN_EXP__ (-6142)
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include/c++/backward"
#define __DEC128_MAX_EXP__ 6145
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include"
#define __DEC128_MIN__ 1E-6143DL
ignoring duplicate directory "/mingw/lib/gcc/mingw32/4.6.1/../../../../include"
#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
ignoring duplicate directory "c:/mingw/lib/gcc/../../include"
#define __DEC128_EPSILON__ 1E-33DL
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/include-fixed"
#define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL
ignoring nonexistent directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.6.1/../../../../mingw32/include"
#define __REGISTER_PREFIX__
ignoring duplicate directory "/mingw/include"
#define __USER_LABEL_PREFIX__ _
#include "..." search starts here:
#define __GNUC_GNU_INLINE__ 1
#include <...> search starts here:
#define __NO_INLINE__ 1
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include/c++
#define __WCHAR_UNSIGNED__ 1
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include/c++/mingw32
#define __GCC_HAVE_DWARF2_CFI_ASM 1
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include/c++/backward
#define __PRAGMA_REDEFINE_EXTNAME 1
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include
#define __SIZEOF_WCHAR_T__ 2
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include
#define __SIZEOF_WINT_T__ 2
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/include-fixed
#define __SIZEOF_PTRDIFF_T__ 4
End of search list.
#define __i386 1
#define __i386__ 1
COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/4.6.1/;c:/mingw/bin/../libexec/gcc/;c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/
#define i386 1
LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/4.6.1/;c:/mingw/bin/../lib/gcc/;c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/lib/;c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../;/mingw/lib/
#define __tune_i386__ 1
COLLECT_GCC_OPTIONS='-E' '-P' '-v' '-dD' '-shared-libgcc' '-mtune=i386' '-march=i386'
#define _X86_ 1
#define __stdcall __attribute__((__stdcall__))
#define __fastcall __attribute__((__fastcall__))
#define __thiscall __attribute__((__thiscall__))
#define __cdecl __attribute__((__cdecl__))
#define _stdcall __attribute__((__stdcall__))
#define _fastcall __attribute__((__fastcall__))
#define _thiscall __attribute__((__thiscall__))
#define _cdecl __attribute__((__cdecl__))
#define __GXX_MERGED_TYPEINFO_NAMES 0
#define __GXX_TYPEINFO_EQUALITY_INLINE 0
#define __MSVCRT__ 1
#define __MINGW32__ 1
#define _WIN32 1
#define __WIN32 1
#define __WIN32__ 1
#define WIN32 1
#define __WINNT 1
#define __WINNT__ 1
#define WINNT 1
#define _INTEGRAL_MAX_BITS 64
#define __declspec(x) __attribute__((x))
#define __DECIMAL_BID_FORMAT__ 1
Re: Problems compiling HELLOWORLD ¿??¿ [message #797282 is a reply to message #797258] Mon, 13 February 2012 09:19 Go to previous messageGo to next message
Harry Houdini is currently offline Harry HoudiniFriend
Messages: 142
Registered: February 2010
Senior Member
Did you correctly set the toolchain ?
Re: Problems compiling HELLOWORLD ¿??¿ [message #797284 is a reply to message #797282] Mon, 13 February 2012 09:23 Go to previous messageGo to next message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
yes, I chose MinGW GCC as the example says
Re: Problems compiling HELLOWORLD ¿??¿ [message #797338 is a reply to message #797284] Mon, 13 February 2012 10:51 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Do you see the system headers in Project Explorer folder Includes?

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Problems compiling HELLOWORLD ¿??¿ [message #797340 is a reply to message #797338] Mon, 13 February 2012 10:54 Go to previous messageGo to next message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
Yes, I do
Re: Problems compiling HELLOWORLD ¿??¿ [message #797345 is a reply to message #797338] Mon, 13 February 2012 10:59 Go to previous messageGo to next message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
In particular I can find \MinGW\lib\gcc\mingw32\4.6.2\include\c++\mingw32\bits\c++config.h where iostream is defined

my erros now are :

Description Resource Path Location Type
invalid operands of types 'const char*' and 'const char [18]' to binary 'operator<<' helloworld.cpp /helloworld/src line 14 C/C++ Problem
Invalid overload of 'endl' helloworld.cpp /helloworld/src line 14 Semantic Error
Re: Problems compiling HELLOWORLD ¿??¿ [message #797346 is a reply to message #797345] Mon, 13 February 2012 11:02 Go to previous messageGo to next message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
sorry I meant \MinGW\lib\gcc\mingw32\4.6.2\include\c++\iostream
there is not any other dependence error in header of includes

The only errors now are the last post ones
Re: Problems compiling HELLOWORLD ¿??¿ [message #797361 is a reply to message #797346] Mon, 13 February 2012 11:30 Go to previous message
guillermo roman is currently offline guillermo romanFriend
Messages: 14
Registered: February 2012
Junior Member
It works!!

I've repeat all the steps from with a ne project and it works

Thanks a lot to everybody (specially to Alex!!)

Let's go to learnt C++!!!
Previous Topic:Searching for text while excluding other text
Next Topic:watchpoint on pointer data (not pointer itself)
Goto Forum:
  


Current Time: Thu Apr 25 00:25:48 GMT 2024

Powered by FUDForum. Page generated in 0.05919 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top