dev-cpp-users Mailing List for Dev-C++ (Page 275)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Kevin S. <web...@ba...> - 2003-12-29 12:59:52
|
Hi, using a simple Hello World program and the appropriate compiler flags (-O3) and without any debug info the executable is about 440KB in size. The compiler doesn't seem to be doing any dead code removal. I remember I had this problem a long time ago when I used cygwin but I don't remember my solution. -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ |
|
From: P.T. W. M. <pt...@ea...> - 2003-12-29 12:59:50
|
Using this hand modified makefile:
CPP = g++.exe
CC = mingw32-gcc.exe
WINDRES = windres.exe
RES = X01_private.res
OBJ = object/main.o $(RES)
LINKOBJ = source/main.o $(RES)
LIBS = -L"C:/bin/cpp/lib" -mwindows
INCS = -I"C:/bin/cpp/include"
CXXINCS
= -I"C:/bin/cpp/include/c++" -I"C:/bin/cpp/include/c++/mingw32"
-I"C:/bin/cpp/include/c++/backward" -I"C:/bin/cpp/include"
BIN = exe/X01.exe
CXXFLAGS = $(CXXINCS) -std=gnu99
CFLAGS = $(INCS) -std=gnu99
.PHONY: all all-before all-after clean clean-custom
all: all-before exe/X01.exe all-after
clean: clean-custom
rm -f $(OBJ) $(BIN)
$(BIN): $(LINKOBJ)
$(CPP) $(LINKOBJ) -o "exe\X01.exe" $(LIBS)
object/main.s: source/main.cpp
$(CPP) -c source/main.cpp -S $(CXXFLAGS)
X01_private.res: X01_private.rc
$(WINDRES) -i X01_private.rc -I rc -o X01_private.res -O coff
on the simple attached (automatically generated app) main.cpp where I
completely removed the main.o lines and inserted a rule to make the asm
source yields this console output:
C:\Documents and Settings\patrick\My Documents\Shop>make
g++ -I"C:/bin/cpp/include/c++" -I"C:/bin/cpp/includ
=gnu99 -c -o source/main.o source/main.cpp
In file included from c:/bin/MinGW/include/objbase.h
from c:/bin/MinGW/include/ole2.h:9,
from c:/bin/MinGW/include/windows.h
from source/main.cpp:1:
c:/bin/MinGW/include/rpcndr.h:123: non-local functio
NDRSContextMarshall(<anonymous struct>*, void*, v
anonymous type
c:/bin/MinGW/include/rpcndr.h:124: non-local functio
NDRSContextUnmarshall(void*, long unsigned int)'
c:/bin/MinGW/include/rpcndr.h:315: non-local functio
NdrServerContextMarshall(_MIDL_STUB_MESSAGE*, <an
(*)(void*))' uses anonymous type
c:/bin/MinGW/include/rpcndr.h:336: non-local functio
NdrServerContextUnmarshall(_MIDL_STUB_MESSAGE*)'
make: *** [source/main.o] Error 1
C:\Documents and Settings\patrick\My Documents\Shop>
*********************** output end
This error seems strange to me as I'm not asking for any .o file, and in
fact deleted the main.o rule to see if I could get rid of this error, which
was stopping me inside the GUI as well.
Again, my goal is simple. I'd like to just be able to turn on the -S
option and then get .s files as output, rather than asm in .o files.
Right now, I'm doing this merely to groke the GUI and see the relationship
to the Makefile.win it creates, etc.
Anyway, if anyone can set me straight about this I'm grateful. It just
does not appear to be working the way I would expect. I notice that in the
Makefile.win created by Dev-Cpp, that it does not use a macro for the .o rule.
I assume what I want to do is possible with a standard makefile, and
therefore should be possible with the Dev-Cpp GUI. Maybe I need to
manually enter an additional rule?
Patrick |
|
From: Smitha V. B. <smi...@so...> - 2003-12-29 12:37:22
|
i don't know how to setup the processor register or what value i have to give for it.. we are using the hitachi chip.. is there any good tutorial with which i can start... Expecting help... regds smitha > -----Original Message----- > From: Per Westermark [SMTP:pw...@ia...] > Sent: Monday, December 29, 2003 5:50 PM > To: Smitha V. Babu > Cc: dev...@li... > Subject: RE: [Dev-C++] write a startup code > > There is nothing magic about it. > > All you have to do is setup the processor registers. Then you may call the > _main function and perform the rest of the hardware initialization there. > > What type of processor are you using? If it is a 386 or higher you might > have to initialize processor to proper memory mappings and then enter > protected mode before calling _main. > > /Per W > > On Mon, 29 Dec 2003, Smitha V. Babu wrote: > > > hi .. > > thank you for your instant reply.. > > I am writing startup code for my gcc compiled program for SH on custom > made > > board. The code that is been generated is fine. But now, I want to add > my > > own startup code. > > What i have to do..does I need to write a small piece of "free-standing" > > code, i.e. it will contain its own startup code . > > can u give some guidelines.. > > how i have to start > > regards > > smitha > > > > > -----Original Message----- > > > From: Per Westermark [SMTP:pw...@ia...] > > > Sent: Monday, December 29, 2003 5:21 PM > > > To: Smitha V. Babu > > > Cc: dev...@li... > > > Subject: Re: [Dev-C++] write a startup code > > > > > > You have to come back with more information. Are you building some > > > embedded system or? That is the only reason to write own startup code. > > > > > > /Per W > > > > > > On Mon, 29 Dec 2003, Smitha V. Babu wrote: > > > > > > > hi , > > > > Does any body know how to write startup code.. > > > > How i can tell the processor to go to main function execute a > particular > > > > function..register exit functions... > > > > > > > > regards > > > > smitha > > > > > ********************************************************************* > > > > Disclaimer: The information in this e-mail and any attachments is > > > > confidential / privileged. It is intended solely for the addressee > or > > > > addressees. If you are not the addressee indicated in this message, > you > > > may > > > > not copy or deliver this message to anyone. In such case, you should > > > destroy > > > > this message and kindly notify the sender by reply email. Please > advise > > > > immediately if you or your employer does not consent to Internet > email > > > for > > > > messages of this kind. > > > > > ********************************************************************* > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: IBM Linux Tutorials. > > > > Become an expert in LINUX or just sharpen your skills. Sign up for > > > IBM's > > > > Free Linux Tutorials. Learn everything from the bash shell to sys > > > admin. > > > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > > > _______________________________________________ > > > > Dev-cpp-users mailing list > > > > Dev...@li... > > > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > ********************************************************************* > > Disclaimer: The information in this e-mail and any attachments is > > confidential / privileged. It is intended solely for the addressee or > > addressees. If you are not the addressee indicated in this message, you > may > > not copy or deliver this message to anyone. In such case, you should > destroy > > this message and kindly notify the sender by reply email. Please advise > > immediately if you or your employer does not consent to Internet email > for > > messages of this kind. > > ********************************************************************* > > ********************************************************************* Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. ********************************************************************* |
|
From: Per W. <pw...@ia...> - 2003-12-29 12:20:40
|
There is nothing magic about it. All you have to do is setup the processor registers. Then you may call the _main function and perform the rest of the hardware initialization there. What type of processor are you using? If it is a 386 or higher you might have to initialize processor to proper memory mappings and then enter protected mode before calling _main. /Per W On Mon, 29 Dec 2003, Smitha V. Babu wrote: > hi .. > thank you for your instant reply.. > I am writing startup code for my gcc compiled program for SH on custom made > board. The code that is been generated is fine. But now, I want to add my > own startup code. > What i have to do..does I need to write a small piece of "free-standing" > code, i.e. it will contain its own startup code . > can u give some guidelines.. > how i have to start > regards > smitha > > > -----Original Message----- > > From: Per Westermark [SMTP:pw...@ia...] > > Sent: Monday, December 29, 2003 5:21 PM > > To: Smitha V. Babu > > Cc: dev...@li... > > Subject: Re: [Dev-C++] write a startup code > > > > You have to come back with more information. Are you building some > > embedded system or? That is the only reason to write own startup code. > > > > /Per W > > > > On Mon, 29 Dec 2003, Smitha V. Babu wrote: > > > > > hi , > > > Does any body know how to write startup code.. > > > How i can tell the processor to go to main function execute a particular > > > function..register exit functions... > > > > > > regards > > > smitha > > > ********************************************************************* > > > Disclaimer: The information in this e-mail and any attachments is > > > confidential / privileged. It is intended solely for the addressee or > > > addressees. If you are not the addressee indicated in this message, you > > may > > > not copy or deliver this message to anyone. In such case, you should > > destroy > > > this message and kindly notify the sender by reply email. Please advise > > > immediately if you or your employer does not consent to Internet email > > for > > > messages of this kind. > > > ********************************************************************* > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: IBM Linux Tutorials. > > > Become an expert in LINUX or just sharpen your skills. Sign up for > > IBM's > > > Free Linux Tutorials. Learn everything from the bash shell to sys > > admin. > > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > > _______________________________________________ > > > Dev-cpp-users mailing list > > > Dev...@li... > > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > ********************************************************************* > Disclaimer: The information in this e-mail and any attachments is > confidential / privileged. It is intended solely for the addressee or > addressees. If you are not the addressee indicated in this message, you may > not copy or deliver this message to anyone. In such case, you should destroy > this message and kindly notify the sender by reply email. Please advise > immediately if you or your employer does not consent to Internet email for > messages of this kind. > ********************************************************************* > |
|
From: P.T. W. M. <pt...@ea...> - 2003-12-29 12:16:11
|
Yes, I can successfully change the object/output directory, no problem. The problem is that there is apparently no way to just have MinGW just output the asm file as .s, rather than .o, so it looks like an object vs. and asm file (without forcing it with the -o command option). That is to say that when I throw the switch (-S in this case) I really want to see it output a .s file automatically, rather than .o. Apparently, however, the GUI does not permit this as it puts in a non-removable -o option regardless mandating output be .o. I even tried disabling this by editing the compile command with override, and removing the -o part. If I do this, then it simply fails altogether. So, I guess it is just a limitation and that if I want this behavior, I'll have to create and manage my own make file. Patrick At 03:31 29-12-03, Piotr Olszewski Z.E.SiMS wrote: >----- Original Message ----- >From: "P.T. Waugh MA" <pt...@ea...> >To: "Dev - C++" <dev...@li...> >Sent: Monday, December 29, 2003 6:36 AM >Subject: [Dev-C++] -S solution to viewing .asm > > > > Hi, > >Hi > > > > > Ok, after managing to read more of the manual I have found the reason I > > didn't see the .s file was a -o file command telling the compiler to save > > as .o anyway. > > > > I really just want the compiler to use the appropriate extension, but > > suspect this is the result of my specifying a directory for 'object' >files. > > > > What should I be modifying to allow me to save output files to a > > sub-directory, but without mandating the extension so that the compiler > > will use the appropriate .s or .o as required. > >Have you tried ><MainMenu/Project/Project Options/Build Opti..../Object file output >directory>? > > > > > Thanks, Patrick > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Smitha V. B. <smi...@so...> - 2003-12-29 12:08:21
|
hi .. thank you for your instant reply.. I am writing startup code for my gcc compiled program for SH on custom made board. The code that is been generated is fine. But now, I want to add my own startup code. What i have to do..does I need to write a small piece of "free-standing" code, i.e. it will contain its own startup code . can u give some guidelines.. how i have to start regards smitha > -----Original Message----- > From: Per Westermark [SMTP:pw...@ia...] > Sent: Monday, December 29, 2003 5:21 PM > To: Smitha V. Babu > Cc: dev...@li... > Subject: Re: [Dev-C++] write a startup code > > You have to come back with more information. Are you building some > embedded system or? That is the only reason to write own startup code. > > /Per W > > On Mon, 29 Dec 2003, Smitha V. Babu wrote: > > > hi , > > Does any body know how to write startup code.. > > How i can tell the processor to go to main function execute a particular > > function..register exit functions... > > > > regards > > smitha > > ********************************************************************* > > Disclaimer: The information in this e-mail and any attachments is > > confidential / privileged. It is intended solely for the addressee or > > addressees. If you are not the addressee indicated in this message, you > may > > not copy or deliver this message to anyone. In such case, you should > destroy > > this message and kindly notify the sender by reply email. Please advise > > immediately if you or your employer does not consent to Internet email > for > > messages of this kind. > > ********************************************************************* > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for > IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys > admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > ********************************************************************* Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. ********************************************************************* |
|
From: Per W. <pw...@ia...> - 2003-12-29 11:51:55
|
You have to come back with more information. Are you building some embedded system or? That is the only reason to write own startup code. /Per W On Mon, 29 Dec 2003, Smitha V. Babu wrote: > hi , > Does any body know how to write startup code.. > How i can tell the processor to go to main function execute a particular > function..register exit functions... > > regards > smitha > ********************************************************************* > Disclaimer: The information in this e-mail and any attachments is > confidential / privileged. It is intended solely for the addressee or > addressees. If you are not the addressee indicated in this message, you may > not copy or deliver this message to anyone. In such case, you should destroy > this message and kindly notify the sender by reply email. Please advise > immediately if you or your employer does not consent to Internet email for > messages of this kind. > ********************************************************************* > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Smitha V. B. <smi...@so...> - 2003-12-29 11:40:14
|
hi , Does any body know how to write startup code.. How i can tell the processor to go to main function execute a particular function..register exit functions... regards smitha ********************************************************************* Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. ********************************************************************* |
|
From: Piotr O. Z.E.S. <co...@si...> - 2003-12-29 11:32:09
|
----- Original Message ----- From: "P.T. Waugh MA" <pt...@ea...> To: "Dev - C++" <dev...@li...> Sent: Monday, December 29, 2003 6:36 AM Subject: [Dev-C++] -S solution to viewing .asm > Hi, Hi > > Ok, after managing to read more of the manual I have found the reason I > didn't see the .s file was a -o file command telling the compiler to save > as .o anyway. > > I really just want the compiler to use the appropriate extension, but > suspect this is the result of my specifying a directory for 'object' files. > > What should I be modifying to allow me to save output files to a > sub-directory, but without mandating the extension so that the compiler > will use the appropriate .s or .o as required. Have you tried <MainMenu/Project/Project Options/Build Opti..../Object file output directory>? > > Thanks, Patrick > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: P.T. W. M. <pt...@ea...> - 2003-12-29 05:36:32
|
Hi, Ok, after managing to read more of the manual I have found the reason I didn't see the .s file was a -o file command telling the compiler to save as .o anyway. I really just want the compiler to use the appropriate extension, but suspect this is the result of my specifying a directory for 'object' files. What should I be modifying to allow me to save output files to a sub-directory, but without mandating the extension so that the compiler will use the appropriate .s or .o as required. Thanks, Patrick |
|
From: P.T. W. M. <pt...@ea...> - 2003-12-29 04:36:19
|
Not really, I have GSView as well. Does nothing more than what Distiller will do. What I require is documentation in a different format than .ps or .pdf, ie. text. Patrick At 18:40 28-12-03, Nathan Smith wrote: >Ghostviw or something should be useful. I have no idea what platforms >but I'm guessing most. >----- Original Message ----- >From: "P.T. Waugh MA" <pt...@ea...> >To: <dev...@li...> >Sent: Monday, December 29, 2003 12:26 PM >Subject: [Dev-C++] gcc docs in other than ps > > > > Hi, > > > > I downloaded the gcc docs, but they are in PS formated on A4. > > > > I used Acrobat's Distiller to convert them to .pdf, but the text is >barely > > readable, and since it is in A4 format, I cannot easily print it. > > > > I'm looking for the docs in some other format so that I might be >able to > > better manipulate them into the form I need to be able to read it. > > > > Where might I find some other format? I have a FreeBSD machine at >my > > disposal as well. > > > > Thanks, Patrick > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for >IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys >admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > >------------------------------------------------------- >This SF.net email is sponsored by: IBM Linux Tutorials. >Become an expert in LINUX or just sharpen your skills. Sign up for IBM's >Free Linux Tutorials. Learn everything from the bash shell to sys admin. >Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Per W. <pw...@ia...> - 2003-12-29 03:17:43
|
#ifdef __MINGW32__
...
#elif __CYGWIN32__
...
#else
...
#endif
/Per W
On Sun, 28 Dec 2003, Maya wrote:
> I am developing a program that gets compiled under two platformes, Linux
> and Windows. In MSW I use Dev-Cpp, which in turn uses MingWin, a minimal
> GCC, but in Linux I use GCC; which is the complete version of GCC. Now
> my problems is that there are certain C functions that are incompatible
> with the two versions of the GCC package, one of them is 'mkdir'. In
> MingWin the declaration is ' int mkdir(const char*)' but in UNIX it is
> 'int mkdir(const char* , int). What can I do to let know the compiler
> that if it is MingWin it should use one incarnation of the function and
> visa versa?
> Example:
> #ifdef MINGWIN
> ... use mkdir("file.dat")
> #endif
> #ifdef CYWIN
> ... use mkdir("file.data", 0);
> #endif
> #ifdef __GCC__
> ...etc., etc.
> #endif
>
> --
>
> FYI
> http://www.astro.umd.edu/~marshall/abbrev.html
>
> E-Mail Policy
> http://www.vif.com/users/escalante/Email_Policy.html
>
> * You cannot exercise your power to a point of humiliation.
> - Jean Chretien
>
> * The media's the most powerful entity on earth. They have the
> power to make the innocent guilty and to make the guilty
> innocent, and that's power.
> - Malcom X
> * "Innocent until proven guilty", no... not in Canada!!
>
>
|
|
From: Nathan S. <str...@ke...> - 2003-12-29 02:37:18
|
Ghostviw or something should be useful. I have no idea what platforms but I'm guessing most. ----- Original Message ----- From: "P.T. Waugh MA" <pt...@ea...> To: <dev...@li...> Sent: Monday, December 29, 2003 12:26 PM Subject: [Dev-C++] gcc docs in other than ps > Hi, > > I downloaded the gcc docs, but they are in PS formated on A4. > > I used Acrobat's Distiller to convert them to .pdf, but the text is barely > readable, and since it is in A4 format, I cannot easily print it. > > I'm looking for the docs in some other format so that I might be able to > better manipulate them into the form I need to be able to read it. > > Where might I find some other format? I have a FreeBSD machine at my > disposal as well. > > Thanks, Patrick > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: P.T. W. M. <pt...@ea...> - 2003-12-29 01:27:17
|
Hi, I downloaded the gcc docs, but they are in PS formated on A4. I used Acrobat's Distiller to convert them to .pdf, but the text is barely readable, and since it is in A4 format, I cannot easily print it. I'm looking for the docs in some other format so that I might be able to better manipulate them into the form I need to be able to read it. Where might I find some other format? I have a FreeBSD machine at my disposal as well. Thanks, Patrick |
|
From: <or...@vp...> - 2003-12-28 23:37:13
|
Hi! Have you tried using the library with a Dev-C++ project? GCC compiled binaries can use MSVC DLLs very well. This is the purpose of MinGW anyway, to use msvcrt.dll (and others) from GCC binaries. Your case however now is just the opposite (VC binaries using GCC DLLs), and I don't if it works, however (because of simple C code) it should. Try it from a Dev-C++ project, that is similar to the VC++ project, and see if that works or not. -- Greetings, Balázs |
|
From: Maya <Esc...@ne...> - 2003-12-28 23:34:17
|
Hey! thanks for the help, but it did not make any difference. I get this
error
In file included from main.C:3:
index.H:41: declaration of `class K'
index.H:24: shadows template parm `class K'
index.H:41: declaration of `class D'
index.H:24: shadows template parm `class D'
-- snip --
Line 24: template<typename K, typename D>
class Index{
/*The resto of the class goes here*/
};
Line 41: template<typename K, typename D>
friend std::ostream& jme::operator<< (std::ostream& os,
const Index<K,D>& obj)
{
return os << obj.getKey() << " " <<
obj.getData();
}
Thanks, any help is much appreciated
d.t...@gm... wrote:
>> Dev-cpp-users -- confirmation of subscription -- request 760458
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
--
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the
power to make the innocent guilty and to make the guilty
innocent, and that's power.
- Malcom X
* "Innocent until proven guilty", no... not in Canada!!
|
|
From: Dirk T. <d.t...@gm...> - 2003-12-28 23:22:31
|
Help! I'm new to this list and quite new to programming on Windows, so please=20 forgive me any ignorance. I like Dev-C++ a lot and find it more usable in many respects than the=20 commercial M$ offerings. My problem is as follow: I have a source-code (in plain C for gcc) of a=20 library I need to use in a Visual-Studio project (for the W32 gui). I was able to successfully port (compile and link) the library into a=20 dll using Dev-C++ (current - good job, folks) and the dll projects type=20 (using declspec etc. for exports). Then I created a small VC++.net project and included the import library=20 and headers. everything links fine but the test app crashes on the=20 first library call with a read access violation. After much fiddling and reading I started loading the DLL and calling=20 some functions dynamically using GetProcAddress(). This works as expected and leads me to thinking that there is some=20 incompatibility in the import library. Can it be the calling convention? I did not declare any and the=20 def-file created by Dev-C++ does not contain underscores nor=20 @<paramtersize> decorations. It would also be an option to link statically against the GCC-built=20 library using VC++. I tried that but also got nothing but crashes. Is that possible at all? Note that I only use pure C, no C++ anywhere. Any help is very much ap=FCpreciated! Greetings, Dirk |
|
From: stephane w. <ste...@9o...> - 2003-12-28 22:51:47
|
In the Compiler option, I must add "D:/Program = Files/MPICH/SDK/Lib/mpich.lib" to the linker command line to use MPI. But when I close and re-open Dev-C++, the command line is translated as=20 D:/Program Files/MPICH/SDK/Lib/mpich.lib without "". The compiler understand this as 2 phrases like this : D:/Program and = Files/MPICH/SDK/Lib/mpich.lib. How i can solve this problem ? Thank. |
|
From: Maya <Esc...@ne...> - 2003-12-28 21:09:33
|
I am having problems with the inserters and extractors in a template,
can someone help, thanks a bunch!
#ifndef JME_INDEX_H
#define JME_INDEX_H
#include <iostream>
namespace jme{
/*
See:
http://new-brunswick.net/workshop/c++/faq/containers-and-templates.html#faq-34.15
for more information regarding the next pre-declarations
*/
// pre-declare the template class itself
template<typename K, typename D> class Index;
// convince the compiler that the operator<< function is a template
template<typename K, typename D> std::ostream& jme::operator<<
(std::ostream& os, const Index<K,D>& obj);
// convince the compiler that the operator<< functions is a template
template<typename K, typename D> std::istream& jme::operator>>
(std::istream& is, Index<K,D>& obj);
template<typename K, typename D> class Index{
private:
std::string version; // class version
K Key;
D Data;
public:
Index(K const& kx, D const& dx): Key(kx), Data(dx){ }
//Copy C'tor
Index(const jme::Index<K, D>& rhs): Key(rhs->Key),
Data(this->Data){}
const K& getKey() const { return Key;}
const D& getData() const { return Data;}
template<typename K, typename D>
friend std::ostream& jme::operator<< (std::ostream& os,
const Index<K,D>& obj){
return os << obj.getKey << " " << obj.getData();
}
template<typename K, typename D>
friend std::istream& jme::operator>> (std::istream& is,
Index<K,D>& obj){
is >> obj.Key;
is >> obj.Data;
return is;
}
}; //Index
} // jme
#endif
--
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the
power to make the innocent guilty and to make the guilty
innocent, and that's power.
- Malcom X
* "Innocent until proven guilty", no... not in Canada!!
|
|
From: Damien A <g_...@ho...> - 2003-12-28 20:37:28
|
<html><div style='background-color:'><DIV class=RTE>
<P><BR><BR></P></DIV>
<DIV></DIV>>From: Maya <ESC...@NE...>
<DIV></DIV>>To: Dev-C++ Mailing List <DEV...@LI...>
<DIV></DIV>>Subject: [Dev-C++] MingWin or Cygwin
<DIV></DIV>>Date: Sun, 28 Dec 2003 15:02:50 -0800
<DIV></DIV><mailto:dev...@li...?subject=unsubscribe><mailto:dev...@li...><mailto:dev...@li...?subject=help><mailto:dev...@li...?subject=subscribe>
<DIV></DIV>
<P>>I am developing a program that gets compiled under two platformes, </P>
<DIV></DIV>>Linux and Windows. In MSW I use Dev-Cpp, which in turn uses MingWin,
<DIV></DIV>>a minimal GCC, but in Linux I use GCC; which is the complete version
<DIV></DIV>>of GCC. Now my problems is that there are certain C functions that
<DIV></DIV>>are incompatible with the two versions of the GCC package, one of
<DIV></DIV>>them is 'mkdir'. In MingWin the declaration is ' int mkdir(const
<DIV></DIV>>char*)' but in UNIX it is 'int mkdir(const char* , int). What can I
<DIV></DIV>>do to let know the compiler that if it is MingWin it should use one
<DIV></DIV>>incarnation of the function and visa versa?
<DIV></DIV>>Example:
<DIV></DIV>>#ifdef MINGWIN
<DIV></DIV>>... use mkdir("file.dat")
<DIV></DIV>>#endif
<DIV></DIV>>#ifdef CYWIN
<DIV></DIV>>... use mkdir("file.data", 0);
<DIV></DIV>>#endif
<DIV></DIV>>#ifdef __GCC__
<DIV></DIV>>...etc., etc.
<DIV></DIV>>#endif
<DIV></DIV>
<DIV>
<P>Hopefully, there aren't many functions you will have to do that with, but you can try something like this:</P></DIV>
<P>#ifdef WIN32</P>
<P>/*Meaning we are in Windows, mingwin, etc. */</P>
<P>#define MAKEDIR(X) mkdir(x)</P>
<P>#else</P>
<P>/*We are in Linux*/</P>
<P>#define MAKEDIR(X) mkdir(x,0)</P>
<P>#endif</mailto:dev...@li...?subject=subscribe></mailto:dev...@li...?subject=help></mailto:dev...@li...></mailto:dev...@li...?subject=unsubscribe></P>
<P>And, just use the macro in those specific cases. Or, you probably could use cygwin, and write the programs as though you were in Linux, just that you need to distribute it with the cygwin dll. Hope that helps.</P></div><br clear=all><hr>Add photos to your messages with <a href="http://g.msn.com/8HMBEN/2749??PS=">MSN 8. </a> Get 2 months FREE*.</html>
|
|
From: Dirk T. <d.t...@gm...> - 2003-12-28 20:09:03
|
> Dev-cpp-users -- confirmation of subscription -- request 760458 |
|
From: Maya <Esc...@ne...> - 2003-12-28 19:54:53
|
I am developing a program that gets compiled under two platformes, Linux
and Windows. In MSW I use Dev-Cpp, which in turn uses MingWin, a minimal
GCC, but in Linux I use GCC; which is the complete version of GCC. Now
my problems is that there are certain C functions that are incompatible
with the two versions of the GCC package, one of them is 'mkdir'. In
MingWin the declaration is ' int mkdir(const char*)' but in UNIX it is
'int mkdir(const char* , int). What can I do to let know the compiler
that if it is MingWin it should use one incarnation of the function and
visa versa?
Example:
#ifdef MINGWIN
... use mkdir("file.dat")
#endif
#ifdef CYWIN
... use mkdir("file.data", 0);
#endif
#ifdef __GCC__
...etc., etc.
#endif
--
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the
power to make the innocent guilty and to make the guilty
innocent, and that's power.
- Malcom X
* "Innocent until proven guilty", no... not in Canada!!
|
|
From: Abdelkader G. <go...@li...> - 2003-12-28 17:21:00
|
it's just a small problem with the type that you have declared:
> typedef jme::Index<const int, const std::string > T_index;
So, T_index now is considered as an alias to the type jme::Index<const int,
const std::string >
Consequently, accessing an attribute or a method that are not declared as
static for this class has no sense. Perhaps you intention was to declare a
variable which is an instance of T_index. In this case you should write
this:
<old code> T_index( i, name );
<correct code> T_index my_instance(i,name);
^^^^^^^^^^^
and change also this:
<old code> std::cout << T_index.getKey() << std::endl;
<correct code> std::cout << my_instance.getKey() << std::endl;
^^^^^^^^^^^
Kind regards,
> Can someone please lend me a hand with this, I get the concept of a
> template, but the dynamics are a bit complicated for me, can someone
> please tell me why I get an error saying:
> main.C: In function int main()
> main.C:15:error: parse error before '.' token
>
>
> Thanks
> ---------- index.C -----------
> #ifndef JME_INDEX_H
> #include "index.H"
> #endif
> ------------ index.H ------------
> #ifndef JME_INDEX_H
> #define JME_INDEX_H
>
> template<typename K, typename D>
> class Index{
> private:
> K Key;
> D Data;
>
> public:
> // C'tor
> Index(K const& kx, D const& dx): Key(kx), Data(dx){ }
> K const& getKey() const { return Key;}
> }; //Index
> } // jme
>
> #endif
>
> ---------- main.C -----------
> #include <string>
> #include <iostream>
> #include "index.H"
> int main(){
> const int i = 50;
> const std::string name( "Maya" );
> typedef jme::Index<const int, const std::string > T_index;
> T_index( i, name );
>
> ////<<--- This is the probme //////
> std::cout << T_index.getKey() << std::endl;
> ////<<--- This is the probme /////
>
>
> std::cout << "End of Index..." << std::endl;
> return 0;
> }
> --
>
> FYI
> http://www.astro.umd.edu/~marshall/abbrev.html
>
> E-Mail Policy
> http://www.vif.com/users/escalante/Email_Policy.html
>
> * You cannot exercise your power to a point of humiliation.
> - Jean Chretien
>
> * The media's the most powerful entity on earth. They have the
> power to make the innocent guilty and to make the guilty
> innocent, and that's power.
> - Malcom X
> * "Innocent until proven guilty", no... not in Canada!!
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for
> IBM's Free Linux Tutorials. Learn everything from the bash shell to
> sys admin. Click now!
> http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Maya <Esc...@ne...> - 2003-12-28 14:11:26
|
Can someone please lend me a hand with this, I get the concept of a
template, but the dynamics are a bit complicated for me, can someone
please tell me why I get an error saying:
main.C: In function int main()
main.C:15:error: parse error before '.' token
Thanks
---------- index.C -----------
#ifndef JME_INDEX_H
#include "index.H"
#endif
------------ index.H ------------
#ifndef JME_INDEX_H
#define JME_INDEX_H
template<typename K, typename D>
class Index{
private:
K Key;
D Data;
public:
// C'tor
Index(K const& kx, D const& dx): Key(kx), Data(dx){ }
K const& getKey() const { return Key;}
}; //Index
} // jme
#endif
---------- main.C -----------
#include <string>
#include <iostream>
#include "index.H"
int main(){
const int i = 50;
const std::string name( "Maya" );
typedef jme::Index<const int, const std::string > T_index;
T_index( i, name );
////<<--- This is the probme //////
std::cout << T_index.getKey() << std::endl;
////<<--- This is the probme /////
std::cout << "End of Index..." << std::endl;
return 0;
}
--
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the
power to make the innocent guilty and to make the guilty
innocent, and that's power.
- Malcom X
* "Innocent until proven guilty", no... not in Canada!!
|
|
From: Abdelkader G. <go...@li...> - 2003-12-28 13:40:08
|
Hi there,
Your code is well written, it should compile and run, just check that you
have compiled correctly the 'file.C' (rename it to .cpp :) or delete all
old *.o files and recompile all the project.
Kind regards,
> This is my first 'class template', so I am sure I am doing something
> wrong. Can anyone help?
>
> TIA
> ------ file.H ------
> namespace jme{
> template<class K, class D>
> class Index{
> protected:
> K Key;
> D Data;
>
> public:
> // C'tor
> Index(K kx, D dx);
> ~Index();
> };
> }
> ------ file.C ------
> template<class K, class D>
> jme::Index<K,D>::Index(K kx, D dx){
> Key = kx;
> Data = dx;
> }
> template<class K, class D>
> jme::Index<K,D>::~Index(){ }
> ------ main.C ------
> int main(){
> int i = 50;
> std::string name("Maya");
> jme::Index<int, std::string> ndx(i,name);
> return 0;
> }
> ------ Error message ------
> main.o(.text+0xb9):main.C: undefined reference to `jme::Index<int,
> std::string>::Index(int, std::string)'
> main.o(.text+0x12c):main.C: undefined reference to `jme::Index<int,
> std::string>::~Index()'
> main.o(.text+0x152):main.C: undefined reference to `jme::Index<int,
> std::string>::~Index()'
> --
>
> FYI
> http://www.astro.umd.edu/~marshall/abbrev.html
>
> E-Mail Policy
> http://www.vif.com/users/escalante/Email_Policy.html
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for
> IBM's Free Linux Tutorials. Learn everything from the bash shell to
> sys admin. Click now!
> http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|