RE: [Dev-C++] Dev-cpp 4.9.6.4 with last mingw 2.0.0.3 distributio n errors
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Santiago P. C. <San...@yd...> - 2002-10-22 08:57:21
|
Hi Roberto, Of course you can compile your code as 'C' with MinGW/gcc ;o) but the question is that you are (probably) mixing C style includes and C++ style= includes: =09- <stdio.h> is the 'C style include' while <iostream> is the 'C++ version' for the "same" behaviour: input/output. =09- <stdlib.h> is the 'C version' while <cstdlib> is the 'C++ include style of C functions' ;o) for the standard library. Talking about YOUR includes: if you are not using any C++ code you don't need to include <cstdlib> nor <iostream> and of course, you don't have to= put 'using namespace std;' in your code. But, if you are compiling gotoxy.cpp (which is supposed to be C++ code), you'll probably have to pu= t 'using namespace std;' because of the includes that I've seen (<cstdlib> = and <iostream>) which are C++ includes. BTW, it seems that your paths values are OK. Regards,=20 Santy -----Original Message----- From: Roberto Ricardi [mailto:rob...@ar...]=20 Sent: martes, 22 de octubre de 2002 3:20 To: 'Dev-C++ -Users-List' Cc: Santiago Palmier Campos Subject: Re: [Dev-C++] Dev-cpp 4.9.6.4 with last mingw 2.0.0.3 distributi= o n errors HI Santiago, Ok, I can compile it like c o c++, but almost 99% of code is ansi c or=20 near, not c++. Im not a c++ programer. My includes #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <conio.h> #include <dos.h> #include <math.h> A member group, Mr. Jason Hardman who send me a nice convert from my old = gotoxy dos style called gotoxy.cpp, it works great. Code includes used: #include <windows.h> #include <cstdlib> #include <iostream> I have not idea about namespaces mean. There is not in my code. More than this: I have my dev-cpp in C:\Dev-cpp and the new mingw in C:\mingw so: I traslated all Dev-cpp path to c:\mingw path (some maybe put both, for=20 testing) binaries C:\Dev-cpp\bin\ C:\Dev-cpp\lib\gcc-lib\mingw32\3.2 library C:\Dev-cpp\lib includes C:\Dev-cpp\include C:\Dev-cpp\c includes c++ C:\Dev-cpp\include C:\Dev-cpp\include\c++ All ' programs' pointing to c:\mingw\bin I put another copy here 'make.exe' from mingw32-make.exe without changes.= =BFMaybe some wrong path here? That=B4s all folk Thanks a lot for your attention Roberto. Santiago Palmier Campos wrote: >Hi Roberto, > >Are you sure you are not compiling 'C++' code but 'C' code ? >(Your statement "Im working in c just not c++." confuses me =3D8-O) > >I know that 'curiosity killed the cat', but (coz I'm not a cat ;oD)...=20 > Why do you need to use namespaces? > Are you including '<iostream>' or '<stdio.h>'? > >Regards, >Santy :o? > >-----Original Message----- >From: Roberto Ricardi [mailto:rob...@ar...] >Sent: lunes, 21 de octubre de 2002 3:36 >To: Dev...@li... >Subject: Re: [Dev-C++] Dev-cpp 4.9.6.4 with last mingw 2.0.0.3 distribut= ion >errors > > >Hi Horst, > >Nope, have not ' using namespace std;' in my code. > >Regards > >h.r...@gm... wrote: > > =20 > >>>Hi all, >>> >>>I=B4ve tried to use dev-cpp with new mingw 2.0.0.3, I read here some = >>>about make name changes, so I rename and copy min...-make.exe in=20 >>>make.exe (tryed with both) , I changed all the directories=20 >>>references, but some looks wrong. Im working in c just not c++. >>> >>>This is the dump compiler / linker results (help linker tell me some=20 >>>about generic error in your source) of course all work well with the=20 >>>distribution from dev-cpp. >>> >>>=BFAny ideas? >>> >>>[Linker error] undefined reference to `std::ios_base::Init::Init()' >>>[Linker error] undefined reference to `std::ios_base::Init::~Init()'=20 >>>[Linker error] undefined reference to `__gxx_personality_v0' =20 >>>C:\Dev-Cpp\c\Makefile.win [Build Error] make.exe: *** [Myprog.exe]=20 >>>Error 1 >>> >>>Thanks in advance >>> >>>Roberto >>> >>> =20 >>> >>> =20 >>> >>Hi, >> >>i use mingw 2.0.0.3 too and all works fine. >>You have included: >>using namespace std;=20 >>in your code ? >> >>Horst >> >>=20 >> >> =20 >> > > > > > >------------------------------------------------------- >This sf.net email is sponsored by: >Access Your PC Securely with GoToMyPC. Try Free Now=20 >https://www.gotomypc.com/s/OSND/DD >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >----------------------------------------------------------------------- >--------------- >This message and any files transmitted with it are confidential and intended solely=20 >for the use of the individual or entity to whom they are addressed. No confidentiality=20 >or privilege is waived or lost by any wrong transmission.=20 >If you have received this message in error, please immediately destroy i= t and kindly=20 >notify the sender by reply email. >You must not, directly or indirectly, use, disclose, distribute, print, = or copy any=20 >part of this message if you are not the intended recipient. Opinions, conclusions and=20 >other information in this message that do not relate to the official business of=20 >Ydilo Advanced Voice Solutions, S.A. shall be understood as neither give= n nor endorsed by it.=20 >------------------------------------------------------------------------= --- ----------- > > =20 > -------------------------------------------------------------------------= ------------- This message and any files transmitted with it are confidential and inten= ded solely=20 for the use of the individual or entity to whom they are addressed. No co= nfidentiality=20 or privilege is waived or lost by any wrong transmission.=20 If you have received this message in error, please immediately destroy it= =20and kindly=20 notify the sender by reply email. You must not, directly or indirectly, use, disclose, distribute, print, o= r copy any=20 part of this message if you are not the intended recipient. Opinions, con= clusions and=20 other information in this message that do not relate to the official busi= ness of=20 Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given= =20nor endorsed by it.=20 -------------------------------------------------------------------------= ------------- |