dev-cpp-users Mailing List for Dev-C++ (Page 504)
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: Gregory H. <gr...@fr...> - 2002-10-21 23:49:11
|
I'm having a problem with includes. When I include in main.cpp a header file
that I created, the debugger gets passed main.cpp without any of the header
files included and this causes errors while debugging, such as undelcared
functions, so that I cannot compile the program. It also makes it difficult
to find other errors in my program. I have tried just copying and pasting
the header file and all other linked files into my code and it compiled
successfully, but I'm programming for a class and the teacher will not let
me copy and paste the header file into main.cpp for my final code. I'm using
version 4.9.6.0. Does anybody know of any way to include these files so that
I don't have to copy and paste, or does anybody know which version this
should work in? I've included my four codes below:
/* MAIN.CPP */
// Make a frog move so many steps.
// Created By: Gregory Hart
// Includes
#include "iostream.h"
#include "frog.h"
// Main function
int main()
{
// Declare variables
int position = 0, steps = 0, blanks;
frog myFrog;
// Get number of steps
cout << "How many steps would you like the frog to travel? ";
cin >> steps;
// Print out frog
while (position < steps) {
blanks = 40 + myFrog.move();
for (int a=0; a < blanks; ++a)
cout << " ";
cout << "*" << endl;
++position;
}
cout << "The final position is " << (blanks + 1);
// End program
return 0;
}
/* FROG.H */
// Frog class
// Created By: Gregory Hart
#ifndef _FROG_H
#define _FROG_H
// Includes
#include "dice.h"
class frog
{
public:
frog();
int move();
int getSteps() const;
private:
int mySteps;
int myPosition;
dice myDice;
};
#include "frog.cpp"
#endif
/* DICE.H */
// Metrowerks and Visual version
#ifndef DICE_H
#define DICE_H
#include <stdlib.h> // srand() and rand() are inside of stdlib.h
#include <time.h>
#include <limits.h>
class dice{
public:
dice(int sides); // constructor
int roll(); // return the random roll
int numSides(); // returns how many sides on die
long numRolls(); // returns # times this die has been rolled
private:
int mySides;
long myRollCount;
};
dice::dice(int sides)
// postcondition: all private fields initialized
// randomize() called to set random number generator
{
long time = clock();
srand(time % INT_MAX);
myRollCount = 0;
mySides = sides;
}
int dice::roll()
// postcondition: # of rolls updated, returns random die roll
{
myRollCount++;
return (rand() % mySides) + 1;
}
int dice::numSides()
// postcondition: return # of sides of die
{
return mySides;
}
long dice::numRolls()
// postcondition: return # times die has been rolled
{
return myRollCount;
}
#endif
/* FROG.CPP */
frog::frog()
: mySteps(0), myPosition(0), myDice(2)
{
// used precondition
}
int frog::move()
{
++mySteps;
int n = myDice.roll();
if (myDice.roll() == 1)
--myPosition;
else
++myPosition;
return myPosition;
}
int frog::getSteps() const
{
return mySteps;
}
|
|
From: Per W. <pw...@ia...> - 2002-10-21 23:33:26
|
Well, destructors are the one of the little extras you get from C++. All objects - struct variables with a twist :-) - might specify a special destructor function that should be called the variable is about to die - run out of scoop or being deleted. The input and output streams are such objects, and the desctructor function defined for them will check if the stream is still open, and if so, automatically flush any pending data and close the stream. Any good book about C++ contains a chapter or two about how to create and destroy objects. Cheers /Per W On Mon, 21 Oct 2002, Rob Peacock wrote: > At 12:31 AM 10/22/02 +0200, Per Westermark wrote: > >A number of problems here, but that is what learning is about :-) > > That's why I'm asking :) > > Points 1 thru 5 well taken. I will try to implement those ideas whenever I > can. > > >Number 6. > >There isn't any need to reopen that poor a_file for each line you are > >about to write out. > > I have learned my lesson concerning 'Save often and save frequently' > because of losing edited graphics files due to power failures. > > >And the close shouldn't be needed if a_file is defined within a local > >scoope, since it will be automatically closed when a_file leaves the > >scope, and the destructor is run. > > What is the 'destructor'? The main book that I have been using for > reference has been K&R because I want to learn *relatively* platform > independant code. I don't necessarily like MS but there aren't a whole lot > of people in my target audience that are all that knowledgeable about > Linux, Macintosh, etc. > > >Number 7. > >You have to give the program a chance to terminate the input loop somehow. > >Maybe you should add a check if the user has pressed enter without > >specifying any characters. It might be a bit bothersome if the user has to > >enter 4096 separate commands before the program ends. > > Point taken. At the begining of the program, the user is asked for the > number of shells that will be involved. Typically, it will be anywhere from > 100 to 500 entries. When they sit down to do the data entry, they are in it > for the long haul (they are populating a shell database). > > >I home these comments helps you somewhat on the way. Pointers and arrays > >does have a way of making the life miserable for C or C++ programmers :-) > > I appreciate your help. When I had C in college, I never made it through > pointers. Life interrupted about that time and I had to ignore school for > 1/2 a semester. I passed the class because I had aced all of the > assignments and tests prior, as well as making all of the code run under > DEC Unix, gcc, and MetroWerks/Mac. > > Thanks again, I will probably be asking more questions - like talking to > serial ports on NT ARRGGG! > > --->Rob > > > ------------------------------------------------------- > This sf.net emial is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote > _______________________________________________ > 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 > |
|
From: Rob P. <py...@ea...> - 2002-10-21 23:13:34
|
At 12:31 AM 10/22/02 +0200, Per Westermark wrote: >A number of problems here, but that is what learning is about :-) That's why I'm asking :) Points 1 thru 5 well taken. I will try to implement those ideas whenever I can. >Number 6. >There isn't any need to reopen that poor a_file for each line you are >about to write out. I have learned my lesson concerning 'Save often and save frequently' because of losing edited graphics files due to power failures. >And the close shouldn't be needed if a_file is defined within a local >scoope, since it will be automatically closed when a_file leaves the >scope, and the destructor is run. What is the 'destructor'? The main book that I have been using for reference has been K&R because I want to learn *relatively* platform independant code. I don't necessarily like MS but there aren't a whole lot of people in my target audience that are all that knowledgeable about Linux, Macintosh, etc. >Number 7. >You have to give the program a chance to terminate the input loop somehow. >Maybe you should add a check if the user has pressed enter without >specifying any characters. It might be a bit bothersome if the user has to >enter 4096 separate commands before the program ends. Point taken. At the begining of the program, the user is asked for the number of shells that will be involved. Typically, it will be anywhere from 100 to 500 entries. When they sit down to do the data entry, they are in it for the long haul (they are populating a shell database). >I home these comments helps you somewhat on the way. Pointers and arrays >does have a way of making the life miserable for C or C++ programmers :-) I appreciate your help. When I had C in college, I never made it through pointers. Life interrupted about that time and I had to ignore school for 1/2 a semester. I passed the class because I had aced all of the assignments and tests prior, as well as making all of the code run under DEC Unix, gcc, and MetroWerks/Mac. Thanks again, I will probably be asking more questions - like talking to serial ports on NT ARRGGG! --->Rob |
|
From: Daniel <zi...@ho...> - 2002-10-21 23:09:49
|
I've been very thoughtful when creating my c++ programs with 2.95; i wanted them to compile in gcc 3.2 whenever i switched. And now I had this -fvtable-thunks SUPER gcc 2.95 _BUG_, which forced me to switch to gcc 3.2. Well well, now the DirectX headers wont compile. I get TONS of error messages. Anyone got the directx8.1 package to work with gcc3.2?? Please tell me how. And perhaps send me a working example? Thanks a million! Daniel |
|
From: Louis G. <lg...@ya...> - 2002-10-21 22:32:54
|
Thank you Santiago, this information convinces me to learn wxWINDOWS rather than than the WIN32 API. The biggest problem programmers have in my opinion is what new products they should spend their time learning ? Things that reduce program development time are priority #1 in my book. --- Santiago Palmier Campos <San...@yd...> wrote: > Hi Luis, > > From my personal experience (I've been programming with MFC from some > time > ago [4-5 years]), what I can tell you is that programming wxWindows IS > much > EASIER than programming M$ MFC and/or win32 API. > > I've been using wxWindows for 6 months now, but I really think that it > makes > sense to use this library. > > wxWindows classes are well structured, you are able to modify / extend > them > and you can contribute to improve the library by submitting your code to > wxWindows development team. You are NOT forced to use doc/view apps even > when there's no need for that programming structure, etc... > > Please have also in mind that: > > - wxWindows source is portable between M$ Windows and some UNIX > flavours (Solaris, Linux,...) > MFC / win32 API is NOT portable in any way. > > - wxWindows source can be compiled with MinGW / M$ VC++ / Borland / > etc... > MFC can ONLY be compiled with M$ VC++ > > - some MFC code does NOT follow C/C++ 'good programming techniques' > nor 'real' templates, etc... > (take a look at MFC code, you'll find some goto's and much > more ;o) > wxWindows IS pure C++ without 'shortcuts' ;oD > > - It is likely to happen that MFC became obsolete since .NET have born > wxWindows will be 'alive' whenever people use it: we've got the > sources! > > Just my 2 cents! > > ~Santy > PS: I do not consider myself a 'guru', that's another reason why I like > such > a library like wxWindows: it makes my life easier!!! > > -----Original Message----- > From: Louis Godio [mailto:lg...@ya...] > Sent: sábado, 19 de octubre de 2002 0:14 > To: Santiago Palmier Campos; dev-cpp-users-list > Subject: RE: [Dev-C++] WxWINDOW > > > Based on the Santiago's note, it seems like wxWindows is a lot of effort > to > set up correctly. Could someone experienced with wxWindows tell us if it > is > worth all this effort ? > > > > --- Santiago Palmier Campos <San...@yd...> wrote: > > Hi *, > > > > If you don't use Dev-C++ package and you want to use wxWindows sources > > > 'by yourself', there are only a few things you must do in order to use > > wxWindows... > > > > Download wxWindows sources (from http://wxwindows.sourceforge.net/), > > download also 'extra.zip' file (from http://wxwindows.sourceforge.net/ > > > also, but only if you don't use MSYS from > > http://mingw.sourceforge.net/) and then, > > FIRST OF ALL, please read the file: %WXWIN%/docs/msw/install.txt > > > > You'll find everything you'll need in order to install it!!! > > > > Anyway here you have a 'Quick How To'... > > > > Set a few environment variables: > > WXWIN to the path where you decompressed wxWindows sources, > > if needed, BISON_SIMPLE & BISON_HAIRY to the complete path to files > > (complete/path/to/folder/plus/filename.extension) > > > > Edit %WXWIN%\src\makeg95.env, search through the options and set them > > to the appropriate values to fit your system needs; I just changed the > > following > > ones (keep in mind that these are MY values for WinAPI & MinGW > > installation > > ;o): > > MINGW32=1 > > MINGW32VERSION=3.2 > > YACC=bison > > CPU=pentium4 > > COMPPATHS = -I"D:/WinAPI/include" -I"D:/MinGW/include" > > Perhaps you may want to include these two also: > > -I"D:/MinGW/include/sys" -I"D:/MinGW/include/c++/3.2" > > > > ...And add the appropriate dirs to this one (keeping the original > > stuff, of > > course): > > LDFLAGS = (...original stuff...) -L"D:/MinGW/lib" -L"D:/WinAPI/lib" > > > > Then cd to %WXWIN%\src\msw and use make -f makefile.g95 clean / make > > -f makefile.g95 and wait... That's all!!! You'll have wxWindows ready > > to use (there are a few more options to use the > > wxWindows DLL, so read the docs, please...) > > > > You'll only need to use a makefile like the following one, you only > > have to modify 'OBJECTS' to fit your needs: > > # Makefile for wxWindows (Mingw32). > > # WXDIR = D:/wxWindows/v2.3.3 > > > > TARGET=MyApp > > OBJECTS = $(TARGET).o MyFrame.o MyOtherStuff.o > > > > include $(WXDIR)/src/makeprog.g95 > > > > Hope this helps > > Santy > > > > -----Original Message----- > > From: Carlos García del Monte [mailto:cg...@wo...] > > Sent: jueves, 17 de octubre de 2002 22:24 > > To: ma...@al...; dev-cpp-users-list > > Subject: Re: [Dev-C++] WxWINDOW > > > > > > Oh, sorry, I thought you got the package from dev home page, which is > > a devpak. > > > > What I did was this: (having gcc[C:\Dev-Cpp\Bin] in the path) > > 1- I unpacked it to C:\wxMSW > > 2 - open command.exe > > 3 - cd to C:\wxMSW\src > > 4 - type make -f makefile.g95 and wait, then I ran over some of the > > other folders seeing that in all of them the result was "make nothing > > to be done > > for all", so I gave it as built. Well, there were a couple of > utilities > > about dialog editor or something like that, I cd to there and make > etc. > > > > The bad news are that I never could make it work, except for the > > examples that were with it, which compiled fine, I tried some examples > > > for > > Dev-C++ > > and I couldn't compile any one. > > > > The first you must do when making a project is define __GNUWIN32__ and > > > define UNICODE, and define __WXMSW__ > > > > And a lot of compiler options, linker parameters... search in the dev > > mailing list, I don't remember when they answered me with all those > > options you must provide, more or less six or seven months ago or > > before. > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: viaVerio will pay you up to $1,000 > > for every account that you consolidate with us. > > http://ad.doubleclick.net/clk;4749864;7604308;v? > > http://www.viaverio.com/consolidator/osdn.cfm > > _______________________________________________ > > 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 for the use of the individual or entity to whom they > > are addressed. No confidentiality > > or privilege is waived or lost by any wrong transmission. > > If you have received this message in error, please immediately destroy > > it and kindly > > notify the sender by reply email. > > You must not, directly or indirectly, use, disclose, distribute, > print, > > or copy any > > part of this message if you are not the intended recipient. Opinions, > > conclusions and > > other information in this message that do not relate to the official > > business of > > Ydilo Advanced Voice Solutions, S.A. shall be understood as neither > > given nor endorsed by it. > > > ---------------------------------------------------------------------------- > ---------- > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Dev-cpp-users mailing list Dev...@li... > === message truncated === __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ |
|
From: Per W. <pw...@ia...> - 2002-10-21 22:32:15
|
A number of problems here, but that is what learning is about :-)
Number 1.
You can never return the address of a variable declared inside a function
UNLESS that variable is declared static, i.e.
char* my_function() {
static char buf[100];
strcpy(buf,"Hello world");
return buf;
}
Number 2.
Your keybd_input is returning a character (the first character in your
array, since return *getKeyString is the same as return getKeyString[0].
The function should be declared:
const char* keybd_input() {
static char getKeyString[100];
....
return getKeyString;
// which is the same as
// return &getKeyString[0]
// i.e. return a pointer to the first character in your array.
}
Number 3.
Whenever you fill a character array with characters, you should either
ALWAYS use your length variable (x) to keep track of number of valid
characters in the buffer, or you should end your input by inserting a
"termination" character at the end, i.e. directly before the return, you
should write:
getKeyString[x] = 0;
// Or possibly: getKeyString[x] = '\0';
Number 4.
Whenever you are filling a finite size (aren't they always) buffer you
should keep track of the available size of your buffer, i.e. a buffer of
size 100 may only store 99 characters plus the terminating zero.
while ((getKeyString[x] = getchar()) != '\n' && x < 99) {
x++;
}
Number 5.
Since you can't have a function return an array of characters, only a
single character, or a pointer to a character, the caller of the function
must perform the copy of the characters to the destination array:
ShellCount = 0;
....
while (some_break_criteria) {
strcpy(ShellName[ShellCount++],keybd_input());
if (ShellCount >= (sizeof(ShellName)/sizeof(ShellName[0])))
// Have consumed all my 4096 shell strings now. Have to end
// receiving more strings.
break;
}
Number 6.
There isn't any need to reopen that poor a_file for each line you are
about to write out. Open it before the for loop, and close it after the
for loop.
{
ofstream a_file(...);
for (;;) {
}
a_file.close();
}
And the close shouldn't be needed if a_file is defined within a local
scoope, since it will be automatically closed when a_file leaves the
scope, and the destructor is run.
Number 7.
You have to give the program a chance to terminate the input loop somehow.
Maybe you should add a check if the user has pressed enter without
specifying any characters. It might be a bit bothersome if the user has to
enter 4096 separate commands before the program ends.
I home these comments helps you somewhat on the way. Pointers and arrays
does have a way of making the life miserable for C or C++ programmers :-)
/Per W
On Mon, 21 Oct 2002, Rob Peacock wrote:
> Hi all,
>
> I'm in the process of trying to teach myself C and C++ but don't have
> anyone to ask questions. I hope you all can answer them.
>
> I am using Dev-C++ (4.9.6.0) on NT4 SP6a.
>
> I am collecting a character stream from the keyboard and storing it in a
> character array from within a function. When I try to pass this back up to
> the calling program, I want to put this data also into an array.
>
> Here is the code I have :
>
> parts of the program that call the function:
>
> /* fn() prototypes */
> char keybd_input();
>
> int main()
> {
> char ShellName[4096][100];
> char getShellName[100];
>
> cout<<"Please enter the shell name: ";
> *getShellName = keybd_input(); // get the keyboard characters
> ShellName[x] = getShellName; // is this the where I'm doing it wrong?
> cout<<"ShellName["<<x<<"] = "<<ShellName[x]<<endl;
>
> for (x=0; x<ShellCount; x++)
> {
> ofstream a_file(getFileName, ios::app); /* opens a text file to append
> to */
> a_file<<ShellIndex[x]<<"\t";
> a_file<<"\n";
> a_file.close();
> }
> }
>
> the function:
>
> char keybd_input()
> {
> int x ; // counter var
> char getKeyString[100]; // character array from keyboard
>
> cout<<"Please enter a long string: ";
>
> x=0;
> while(( getKeyString[x] = getchar() ) != '\n')
> {
> getKeyString[x];
> x++;
> }
> return *getKeyString;
> }
>
>
> My problem is that I am only getting the first character of the data passed
> back from the function.
>
> Any ideas on how to fix this?
> Your help would be appreciated.
>
> Thanks,
>
> --->Rob
>
>
> -------------------------------------------------------
> This sf.net emial is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote
> _______________________________________________
> 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
>
|
|
From: <qa...@ho...> - 2002-10-21 21:49:49
|
Danke Horst.
Ich habe es nichts jetzt versuchts, aber sagen sie es fungiert, es fungiert=
:-)
That was my poor German, haven't spoken or read it since my early=
schooldays, like 15-20 years ago.
And heres what I said (I think) in english, because that's the official=
language of the list :-)
Thanx Horst
Haven't tried it yet, but if you say it works, it works.
/J=F6rgen
*********** REPLY SEPARATOR ***********
On 2002-10-21 at 23:26 h.r...@gm... wrote:
>> Hello all,
>>
>> I get an errormessage when I compile and I can't figure out what the
>> problem is.
>> Here's the code
>>
>> #include <iostream>
>> #include <list>
>>
>> int main(int argc, char *argv[]){
>> list<int> initialWeightList;
>> for(int i=3D0; i<10; i++)
>> initialWeightList.push_back(i);
>>
>> list<int>::iterator iter;
>> for(
>> iter =3D initialWeightList.begin();
>> iter < initialWeightList.end(); // <--- error ?!?!?!
>> iter++
>> ){
>> cout << "Here i do something" << endl;
>> }
>> }
>>
>> and here's the errormessage
>>
>> 12 D:\Programmering\IDE\Dev-Cpp\__Projects\Test\main.cpp
>> no match for `_List_iterator<int,int &,int *> & < _List_iterator<int,int
>> &,int *>'
>>
>> The for-statement is split up so I can locate the error
>>
>> Any ideas?
>> If I replace all list<int> by vector<int>, and include <vector>=
ofcourse,
>> it works just fine.
>>
>> Regards
>> /J=F6rgen
>>
>>
>Hi,
>This works (with mingw2.0.0-3):
>
>#include <iostream>
>#include <list>
>
>using namespace std;
>
>int main(int argc, char *argv[]){
> list<int> initialWeightList;
> for(int i=3D0; i<10; i++)
> initialWeightList.push_back(i);
>
> list<int>::iterator iter;
> for(
> iter =3D initialWeightList.begin();
> iter !=3D initialWeightList.end(); // <--- error ?!?!?!
> iter++
> ){
> cout << "Here i do something" << endl;
> }
>
> system("PAUSE");
>}
>
>I think it is wrong to compare two iterators with < because in a list the
>items are anywhere in the memory and not in order (as in vector).
>Iterators are
>like pointers. You can compare it with =3D=3D or !=3D.
>
>regards
>Horst
>
>--
>+++ GMX - Mail, Messaging & more http://www.gmx.net +++
>NEU: Mit GMX ins Internet. Rund um die Uhr f=FCr 1 ct/ Min. surfen!
>
>
>
>-------------------------------------------------------
>This sf.net emial is sponsored by: Influence the future
>of Java(TM) technology. Join the Java Community
>Process(SM) (JCP(SM)) program now.
>http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote=
>_______________________________________________
>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
|
|
From: <h.r...@gm...> - 2002-10-21 21:26:25
|
> Hello all,
>
> I get an errormessage when I compile and I can't figure out what the
> problem is.
> Here's the code
>
> #include <iostream>
> #include <list>
>
> int main(int argc, char *argv[]){
> list<int> initialWeightList;
> for(int i=0; i<10; i++)
> initialWeightList.push_back(i);
>
> list<int>::iterator iter;
> for(
> iter = initialWeightList.begin();
> iter < initialWeightList.end(); // <--- error ?!?!?!
> iter++
> ){
> cout << "Here i do something" << endl;
> }
> }
>
> and here's the errormessage
>
> 12 D:\Programmering\IDE\Dev-Cpp\__Projects\Test\main.cpp
> no match for `_List_iterator<int,int &,int *> & < _List_iterator<int,int
> &,int *>'
>
> The for-statement is split up so I can locate the error
>
> Any ideas?
> If I replace all list<int> by vector<int>, and include <vector> ofcourse,
> it works just fine.
>
> Regards
> /Jörgen
>
>
Hi,
This works (with mingw2.0.0-3):
#include <iostream>
#include <list>
using namespace std;
int main(int argc, char *argv[]){
list<int> initialWeightList;
for(int i=0; i<10; i++)
initialWeightList.push_back(i);
list<int>::iterator iter;
for(
iter = initialWeightList.begin();
iter != initialWeightList.end(); // <--- error ?!?!?!
iter++
){
cout << "Here i do something" << endl;
}
system("PAUSE");
}
I think it is wrong to compare two iterators with < because in a list the
items are anywhere in the memory and not in order (as in vector). Iterators are
like pointers. You can compare it with == or !=.
regards
Horst
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
|
|
From: Rob P. <py...@ea...> - 2002-10-21 20:48:45
|
Hi all,
I'm in the process of trying to teach myself C and C++ but don't have
anyone to ask questions. I hope you all can answer them.
I am using Dev-C++ (4.9.6.0) on NT4 SP6a.
I am collecting a character stream from the keyboard and storing it in a
character array from within a function. When I try to pass this back up to
the calling program, I want to put this data also into an array.
Here is the code I have :
parts of the program that call the function:
/* fn() prototypes */
char keybd_input();
int main()
{
char ShellName[4096][100];
char getShellName[100];
cout<<"Please enter the shell name: ";
*getShellName = keybd_input(); // get the keyboard characters
ShellName[x] = getShellName; // is this the where I'm doing it wrong?
cout<<"ShellName["<<x<<"] = "<<ShellName[x]<<endl;
for (x=0; x<ShellCount; x++)
{
ofstream a_file(getFileName, ios::app); /* opens a text file to append
to */
a_file<<ShellIndex[x]<<"\t";
a_file<<"\n";
a_file.close();
}
}
the function:
char keybd_input()
{
int x ; // counter var
char getKeyString[100]; // character array from keyboard
cout<<"Please enter a long string: ";
x=0;
while(( getKeyString[x] = getchar() ) != '\n')
{
getKeyString[x];
x++;
}
return *getKeyString;
}
My problem is that I am only getting the first character of the data passed
back from the function.
Any ideas on how to fix this?
Your help would be appreciated.
Thanks,
--->Rob
|
|
From: Johnathon R. L. <jr...@ch...> - 2002-10-21 20:35:20
|
Per,
Thanks for the information. I couldn't find anything
that would have adversly affected my sh.exe due to an
update. After some trial and error, I found that by
removing the reference to the FLTK icon in the Project
Properties Dialog that it would compile and run cleanly.
Unsure if I need to pursue this any farther...it's
working for me.
Thanks again,
JLee
On Mon, 21 Oct 2002 17:16:04 +0200 (CEST)
Per Westermark <pw...@ia...> wrote:
>After a recent update of Dev-Cpp one project of mine
>suddenly started
>to emit a simpilar error in the link step. It was my "sh"
>that was a bit
>broken and needed to be replaced. I don't know if the
>update of Dev-Cpp
>increased the line length of the link command or whatever
>changed, but a
>newer version of sh did solve my problem.
>
>/Per W
>
>On Mon, 21 Oct 2002, Johnathon R. Lee wrote:
>
>> Hello All,
>> I try to create a new FLTK project. After saving the
>> boilerplate files (created by choosing the FLTK type
>> project), my doubleE.cpp files contents look like this:
>>
>> #include <FL/Fl.H>
>> #include <FL/Fl_Window.H>
>> #include <FL/Fl_Box.H>
>>
>> int
>> main (int argc, char *argv[])
>> {
>> Fl_Window *window;
>> Fl_Box *box;
>>
>> window = new Fl_Window (300, 180);
>> box = new Fl_Box (20, 40, 260, 100, "Hello
>>World!");
>>
>> box->box (FL_UP_BOX);
>> box->labelsize (36);
>> box->labelfont (FL_BOLD+FL_ITALIC);
>> box->labeltype (FL_SHADOW_LABEL);
>> window->end ();
>> window->show (argc, argv);
>>
>> return Fl::run();
>> }
>>
>> When I try to compile, I receive this compiler error:
>>
>> Line: make.exe
>> Unit: F:\doubleE\make.exe
>> Message: Interrupt/Exception caught(code=0xc0000005,
>>addr
>> = 0x41bd7a)
>>
>> I believe I've done this successfully in the past and am
>> unsure of what I may have changed. Any suggestions?
>>
>> Thanks,
>> JLee
|
|
From: Santiago <sa...@ho...> - 2002-10-21 18:36:13
|
how come? ----- Original Message ----- From: "Per Westermark" <pw...@ia...> To: "Ioannis Vranos" <no...@ho...> Cc: "'Dev-C++ Mailing List'" <dev...@li...> Sent: Monday, October 21, 2002 11:38 AM Subject: RE: [Dev-C++] learning c++, best book > Did I miss something. > > From the M$ link, I found the following information: > > >A tools update, "Visual Studio for Longhorn," will support the managed > >interfaces, enhanced user interface features, and other new capabilities > >of the updated platform. > > Unless Win-Longhorn continues to run Win32 applications in an efficient > way, the stock prices for computer manufacturers will go sky-rocket at the > Longhorn roll-out... > > /Per W > > On Mon, 21 Oct 2002, Ioannis Vranos wrote: > > > > -----Original Message----- > > > From: > > > Sent: Monday, October 21, 2002 7:10 AM > > > To: Ioannis Vranos; Dev-C++ Mailing List > > > Subject: Re: [Dev-C++] learning c++, best book > > > > > > > > > two questions, > > > How is .NET compared to win32 when it comes to stability and > > > reliability? > > > Do you think .NET will become more powerful and more on > > > demand than C++? > > > > > > .NET is better. It is the next step in the Win GUI evolution process. > > .NET is stable and reliable. Also .NET provides more stuff than Win32 > > enabling Web services. For example it provides Web form classes. > > > > Something very important. The next Windows version codenamed "Longhorn" > > will provide *only* managed .NET APIs. MS is committed to provide .NET > > APIs for all its products. Take a look at: > > http://msdn.microsoft.com/vstudio/productinfo/roadmap.asp > > > > > > All development tools companies are preparing .NET releases for their > > products. > > > > > > Ioannis > > > > * Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > > * Alternative URL: http://run.to/noicys > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > 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 sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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 > |
|
From: Santiago <sa...@ho...> - 2002-10-21 18:23:42
|
So since .NET has nothing to do with C++, one doesn't need to learn C++ =
in order to learn .NET??
Also, Ioannis Vranos say: "Something very important. The next Windows =
version codenamed "Longhorn"
will provide *only* managed .NET APIs. MS is committed to provide .NET
APIs for all its products. "
So, does that mean win32API applications won't work on "Longhorn"?
San
----- Original Message -----=20
From: Carlos Garc=EDa del Monte=20
To: dev-cpp-users-list=20
Sent: Monday, October 21, 2002 6:26 AM
Subject: Re: [Dev-C++] Re: learning c++, best book
=20
Teodorescu Cristian escribi=F3:=20
Carlos Garc=EDa del Monte wrote:=20
>I agree with Mrs Elizabeth, I have "win32 programming" by Rector =
and Newcomer, too. Since it I achieved to make programs=20
>which work=20
>=20
why your programs does not use to work ?? :-)
Why your programs did not use to work??:-)=20
In my first experiments before know Rector's book, with other books =
more ore less outdated (I didn't find anything modern) or the =
explanations of the books were so bad done that I didn't understand them =
and I did not what I should, or I didn't find anything and I couldn't =
imagine how to write things, and for what I read in the books I did not =
understand the winapi reference, e.g., for creating a font, CreateFont =
Indirect, oh, you need logfont, what's that?, search some place, =
chosefont, what? see in other place, and that what is it?, etc, and =
when I found the n-th function or structure I forgot what was the damned =
meaning of logfont, or what function I was trying to use.=20
=20
> (I'm still in experimantation with the programs), and nowI =
understand what means the things at the Win32API=20
>programmer's reference.=20
>Reliable's tutorial is a good place for c++ windows programming, =
but I would recommend take a sight in Foreger's tutorial=20
>before (www.winprog.org or com)=20
>Another book you'll hear is "programming windows" by Petzold, but =
it is only C and i more limited than Rector's (judging=20
>=20
I've read the petzold book is great book.=20
"but it is only C "-take a closer look. API means procedural =
programing=20
not oop . they are a collection of functions not a collection of =
classes.=20
If you want c++ use a wrapper i think MFC(VC ++ ) or from wxWindow =
are=20
suitable.=20
Best book does not exist every book has a weak chapter and a strong =
chapter.
Of course, but see at the subject, it says learning c++, and he wants =
to learn it for windows programming. You can learn MFC, which is the MS =
library for C++ over windows api, so we can talk him about books for =
MFC, ...=20
Do a search for books over MFC, I didn't search any of them because of =
the continuation of what I am saying, I cannot recommend any of them =
because I don't know any.=20
..., but I assume he wants either program with MinGW, and MFC is only =
for MSVisualC++, and MinGW has not it. I recommend him a book for =
Win32API, which is not C++, but starts with the "raw API", which I =
consider something recommendable to work, and if he won't be able to use =
MFC I feel that way he will be able to guess what will be going under =
classes and the sense of those classes, and if he needs to write a class =
of his own he will be able to do so. But in Petzold's book, for the TOC =
and what I read about it and saw in a claimed downloadable version of it =
found somewhere, it uses always C, while Rector's one at the second part =
starts using MFC and C++, so he'll can see that code and have a feel, =
and the code of the C part is organized in a such kind of way that is in =
a direction pointing to C++, is a C code with the taste of C++.=20
=20
>with the TOC, since I haven't read Petzold's book)=20
>=20
i think you should read the book.=20
in some chapters are much more than u expected
Just yesterday I had a watch at some chapters of the downloadable one, =
and I found a couple of things. And few days ago I had a watch in th TOC =
of it at amazon and it has either other couple of things, like a chapter =
about files, a matter absent in Rector's book (this is perhaps the main =
fall of Rector). |
|
From: Tomas W. <tom...@ee...> - 2002-10-21 16:30:35
|
Hi all, Is it possible to get C syntax help within the Dev C++ ide? I can't see how ts done and I for one always require F1 hotkey help at times. any workarounds anyone? Tomas |
|
From: <qa...@ho...> - 2002-10-21 16:10:31
|
Hello all,
I get an errormessage when I compile and I can't figure out what the=
problem is.
Here's the code
#include <iostream>
#include <list>
int main(int argc, char *argv[]){
list<int> initialWeightList;
for(int i=3D0; i<10; i++)
initialWeightList.push_back(i);
list<int>::iterator iter;
for(
iter =3D initialWeightList.begin();
iter < initialWeightList.end(); // <--- error ?!?!?!
iter++
){
cout << "Here i do something" << endl;
}
}
and here's the errormessage
12 D:\Programmering\IDE\Dev-Cpp\__Projects\Test\main.cpp
no match for `_List_iterator<int,int &,int *> & < _List_iterator<int,int=
&,int *>'
The for-statement is split up so I can locate the error
Any ideas?
If I replace all list<int> by vector<int>, and include <vector> ofcourse,=
it works just fine.
Regards
/J=F6rgen
|
|
From: Per W. <pw...@ia...> - 2002-10-21 15:38:21
|
Did I miss something. From the M$ link, I found the following information: >A tools update, "Visual Studio for Longhorn," will support the managed >interfaces, enhanced user interface features, and other new capabilities >of the updated platform. Unless Win-Longhorn continues to run Win32 applications in an efficient way, the stock prices for computer manufacturers will go sky-rocket at the Longhorn roll-out... /Per W On Mon, 21 Oct 2002, Ioannis Vranos wrote: > > -----Original Message----- > > From: > > Sent: Monday, October 21, 2002 7:10 AM > > To: Ioannis Vranos; Dev-C++ Mailing List > > Subject: Re: [Dev-C++] learning c++, best book > > > > > > two questions, > > How is .NET compared to win32 when it comes to stability and > > reliability? > > Do you think .NET will become more powerful and more on > > demand than C++? > > > .NET is better. It is the next step in the Win GUI evolution process. > .NET is stable and reliable. Also .NET provides more stuff than Win32 > enabling Web services. For example it provides Web form classes. > > Something very important. The next Windows version codenamed "Longhorn" > will provide *only* managed .NET APIs. MS is committed to provide .NET > APIs for all its products. Take a look at: > http://msdn.microsoft.com/vstudio/productinfo/roadmap.asp > > > All development tools companies are preparing .NET releases for their > products. > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL: http://run.to/noicys > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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 > |
|
From: Per W. <pw...@ia...> - 2002-10-21 15:22:37
|
Well, it definitely makes sense to make a makefile according to the sammple below. That makes it easy to compile to application in other environments when Dev-Cpp isn't supported or available. For my Unix and release builds, I use a makefile similar to the example below. /Per W On Mon, 21 Oct 2002, Santiago Palmier Campos wrote: > Hi again, >=20 > Sorry for the misunderstanding Per, you're right! ;oD >=20 > I was thinking about using wxWindows directly, not only within the IDE... > :o( >=20 > Regards, Santy >=20 > -----Original Message----- > From: Per Westermark [mailto:pw...@ia...]=20 > Sent: lunes, 21 de octubre de 2002 16:53 > To: Santiago Palmier Campos > Cc: 'ma...@al...'; dev...@li... > Subject: RE: [Dev-C++] WxWINDOWS and Dev-C++ >=20 >=20 > But since this is the dev-cpp mailing list, I kind of assumed that he wan= ted > to use the IDE functionality of Dev-Cpp, which includes the generation of > make-files. >=20 > I'm not using the pre-packaged wxWindows package for dev-cpp, but I kind = of > assume that the package comes with a project template. If it doesn't, it'= s > quite easy to create a suitable template, by duplicating the different fl= ags > and settings that the wxWindows make-files uses. >=20 > /Per W >=20 >=20 > On Mon, 21 Oct 2002, Santiago Palmier Campos wrote: >=20 > > Hi again, > >=20 > > In order to use all wxWindows switches & options for MinGW, you'll=20 > > only need to use a makefile like the following one (you only have to=20 > > modify 'OBJECTS' to fit your needs): <MAKEFILE> > > =09# Makefile for wxWindows (Mingw32). > > =09# WXDIR =3D D:/wxWindows/v2.3.3 (or whatever your base directory is) > >=20 > > =09TARGET=3DMyApp > > =09OBJECTS =3D $(TARGET).o MyFrame.o MyOtherStuff.o > >=20 > > =09include $(WXDIR)/src/makeprog.g95 > > </MAKEFILE> > >=20 > > This is almost the same makefile used by the samples provided by=20 > > wxWindows! So if you are able to build them you'll be able to compile= =20 > > your own project. > >=20 > > Hope this helps! > > Regards, Santy > >=20 > > -----Original Message----- > > From: Per Westermark [mailto:pw...@ia...] > > Sent: lunes, 21 de octubre de 2002 15:57 > > To: Santiago Palmier Campos > > Cc: 'ma...@al...'; dev...@li... > > Subject: RE: [Dev-C++] WxWINDOWS and Dev-C++ > >=20 > >=20 > > The problem is that you have forgotten do define which compiler=20 > > environment you are using. > >=20 > > Deefine __GNUWIN32__ and wxWindows will select a suitable string=20 > > compare function. > >=20 > > A good trick when playing along with the wxWindows kit is to run the=20 > > makefiles in the samples directory. When they compile the code, you=20 > > will see a number of parameters sent to gcc. If you make sure that=20 > > your own projects uses the same parameters, you will be home-free. > >=20 > > You will get all needed libraries, same settings for run-time type=20 > > information, debug settings etc. > >=20 > > /Per W > >=20 > > On Mon, 21 Oct 2002, Santiago Palmier Campos wrote: > >=20 > > > Hi Mark, > > >=20 > > > This error may appear due to... > > >=20 > > > ...uncomplete/wrong build of wxWindows libraries; so you have to > > > rebuild the libraries correctly. > > >=20 > > > ...wrong order for include directories, please check them and take a > > > look > > > at: > > > > > http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Directory-Options.html#Direc > > tory%2 > > > 0Options > > > I think it is really useful sometimes ;o) > > >=20 > > > Hope this helps! > > > Regards > > >=20 > > > Santy > > > PS: wxWindows is not so hard/difficult to use, just be a little bit > > > patient at the beginning, follow the README instructions and take a= =20 > > > look at some tutorials, they are great!!! Just my 2 cents! > > >=20 > > > -----Original Message----- > > > From: Mark L. Wise [mailto:ma...@al...] > > > Sent: s=E1bado, 19 de octubre de 2002 0:03 > > > To: dev...@li... > > > Subject: [Dev-C++] WxWINDOWS and Dev-C++ > > >=20 > > >=20 > > > Hello all! > > >=20 > > > Sorry to be such a pain regarding WxWINDOWS and Dev-C++, but.... > > >=20 > > > I have been trying to compile some of the sample code included with > > > the WxWINDOWS package. When I try compiling I get the following=20 > > > message (along with other things...) > > >=20 > > > 4 C:\PROGRAM FILES\DEV-C++\include\wx\string.h:170 > > > #error "Please define string case-insensitive compare for your > > > OS/compiler" > > >=20 > > > So... How do I define string case-insensitive compare in Dev-C++??? > > >=20 > > > Thanks in advance... > > >=20 > > > Mark > > >=20 > > > Alpha II Service, Inc. > > > 1312 Epworth Avenue > > > Reynoldsburg, Ohio 43068 > > > 614 868-5033 (Voice) > > > 617 812-5838 (Fax) > > >=20 > > >=20 > > >=20 > > >=20 > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > 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 > > > for the use of the individual or entity to whom they are addressed.= =20 > > > No > > confidentiality > > > or privilege is waived or lost by any wrong transmission. > > > If you have received this message in error, please immediately destro= y > it > > and kindly > > > notify the sender by reply email. > > > You must not, directly or indirectly, use, disclose, distribute,=20 > > > print, or > > copy any > > > part of this message if you are not the intended recipient.=20 > > > Opinions, > > conclusions and > > > other information in this message that do not relate to the official > > business of > > > Ydilo Advanced Voice Solutions, S.A. shall be understood as neither= =20 > > > given > > nor endorsed by it. > > > > > ---------------------------------------------------------------------- > > ------ > > ---------- > > >=20 > > >=20 > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > 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 > > >=20 > > ---------------------------------------------------------------------- > > ---------------- > > 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 = it > 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 giv= en > nor endorsed by it.=20 > > > -------------------------------------------------------------------------= --- > ---------- > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf=20 > > _______________________________________________ > > 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 > >=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= and 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= nor endorsed by it.=20 > -------------------------------------------------------------------------= ------------- >=20 |
|
From: Per W. <pw...@ia...> - 2002-10-21 15:16:30
|
After a recent update of Dev-Cpp one project of mine suddenly started
to emit a simpilar error in the link step. It was my "sh" that was a bit
broken and needed to be replaced. I don't know if the update of Dev-Cpp
increased the line length of the link command or whatever changed, but a
newer version of sh did solve my problem.
/Per W
On Mon, 21 Oct 2002, Johnathon R. Lee wrote:
> Hello All,
> I try to create a new FLTK project. After saving the
> boilerplate files (created by choosing the FLTK type
> project), my doubleE.cpp files contents look like this:
>
> #include <FL/Fl.H>
> #include <FL/Fl_Window.H>
> #include <FL/Fl_Box.H>
>
> int
> main (int argc, char *argv[])
> {
> Fl_Window *window;
> Fl_Box *box;
>
> window = new Fl_Window (300, 180);
> box = new Fl_Box (20, 40, 260, 100, "Hello World!");
>
> box->box (FL_UP_BOX);
> box->labelsize (36);
> box->labelfont (FL_BOLD+FL_ITALIC);
> box->labeltype (FL_SHADOW_LABEL);
> window->end ();
> window->show (argc, argv);
>
> return Fl::run();
> }
>
> When I try to compile, I receive this compiler error:
>
> Line: make.exe
> Unit: F:\doubleE\make.exe
> Message: Interrupt/Exception caught(code=0xc0000005, addr
> = 0x41bd7a)
>
> I believe I've done this successfully in the past and am
> unsure of what I may have changed. Any suggestions?
>
> Thanks,
> JLee
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> 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
>
|
|
From: Santiago P. C. <San...@yd...> - 2002-10-21 15:14:32
|
Hi again, Sorry for the misunderstanding Per, you're right! ;oD I was thinking about using wxWindows directly, not only within the IDE...= :o( Regards, Santy -----Original Message----- From: Per Westermark [mailto:pw...@ia...]=20 Sent: lunes, 21 de octubre de 2002 16:53 To: Santiago Palmier Campos Cc: 'ma...@al...'; dev...@li... Subject: RE: [Dev-C++] WxWINDOWS and Dev-C++ But since this is the dev-cpp mailing list, I kind of assumed that he wan= ted to use the IDE functionality of Dev-Cpp, which includes the generation of= make-files. I'm not using the pre-packaged wxWindows package for dev-cpp, but I kind = of assume that the package comes with a project template. If it doesn't, it'= s quite easy to create a suitable template, by duplicating the different fl= ags and settings that the wxWindows make-files uses. /Per W On Mon, 21 Oct 2002, Santiago Palmier Campos wrote: > Hi again, >=20 > In order to use all wxWindows switches & options for MinGW, you'll=20 > only need to use a makefile like the following one (you only have to=20 > modify 'OBJECTS' to fit your needs): <MAKEFILE> > # Makefile for wxWindows (Mingw32). > # WXDIR =3D D:/wxWindows/v2.3.3 (or whatever your base directory is) >=20 > TARGET=3DMyApp > OBJECTS =3D $(TARGET).o MyFrame.o MyOtherStuff.o >=20 > include $(WXDIR)/src/makeprog.g95 > </MAKEFILE> >=20 > This is almost the same makefile used by the samples provided by=20 > wxWindows! So if you are able to build them you'll be able to compile=20 > your own project. >=20 > Hope this helps! > Regards, Santy >=20 > -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: lunes, 21 de octubre de 2002 15:57 > To: Santiago Palmier Campos > Cc: 'ma...@al...'; dev...@li... > Subject: RE: [Dev-C++] WxWINDOWS and Dev-C++ >=20 >=20 > The problem is that you have forgotten do define which compiler=20 > environment you are using. >=20 > Deefine __GNUWIN32__ and wxWindows will select a suitable string=20 > compare function. >=20 > A good trick when playing along with the wxWindows kit is to run the=20 > makefiles in the samples directory. When they compile the code, you=20 > will see a number of parameters sent to gcc. If you make sure that=20 > your own projects uses the same parameters, you will be home-free. >=20 > You will get all needed libraries, same settings for run-time type=20 > information, debug settings etc. >=20 > /Per W >=20 > On Mon, 21 Oct 2002, Santiago Palmier Campos wrote: >=20 > > Hi Mark, > >=20 > > This error may appear due to... > >=20 > > ...uncomplete/wrong build of wxWindows libraries; so you have to > > rebuild the libraries correctly. > >=20 > > ...wrong order for include directories, please check them and take a > > look > > at: > > > http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Directory-Options.html#Direc > tory%2 > > 0Options > > I think it is really useful sometimes ;o) > >=20 > > Hope this helps! > > Regards > >=20 > > Santy > > PS: wxWindows is not so hard/difficult to use, just be a little bit > > patient at the beginning, follow the README instructions and take a=20 > > look at some tutorials, they are great!!! Just my 2 cents! > >=20 > > -----Original Message----- > > From: Mark L. Wise [mailto:ma...@al...] > > Sent: s=E1bado, 19 de octubre de 2002 0:03 > > To: dev...@li... > > Subject: [Dev-C++] WxWINDOWS and Dev-C++ > >=20 > >=20 > > Hello all! > >=20 > > Sorry to be such a pain regarding WxWINDOWS and Dev-C++, but.... > >=20 > > I have been trying to compile some of the sample code included with > > the WxWINDOWS package. When I try compiling I get the following=20 > > message (along with other things...) > >=20 > > 4 C:\PROGRAM FILES\DEV-C++\include\wx\string.h:170 > > #error "Please define string case-insensitive compare for your > > OS/compiler" > >=20 > > So... How do I define string case-insensitive compare in Dev-C++??? > >=20 > > Thanks in advance... > >=20 > > Mark > >=20 > > Alpha II Service, Inc. > > 1312 Epworth Avenue > > Reynoldsburg, Ohio 43068 > > 614 868-5033 (Voice) > > 617 812-5838 (Fax) > >=20 > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > 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 > > for the use of the individual or entity to whom they are addressed.=20 > > No > confidentiality > > or privilege is waived or lost by any wrong transmission. > > If you have received this message in error, please immediately destro= y it > and kindly > > notify the sender by reply email. > > You must not, directly or indirectly, use, disclose, distribute,=20 > > print, or > copy any > > part of this message if you are not the intended recipient.=20 > > Opinions, > conclusions and > > other information in this message that do not relate to the official > business of > > Ydilo Advanced Voice Solutions, S.A. shall be understood as neither=20 > > given > nor endorsed by it. > > > ---------------------------------------------------------------------- > ------ > ---------- > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > 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 > >=20 > ---------------------------------------------------------------------- > ---------------- > 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 = it and kindly=20 > notify the sender by reply email. > You must not, directly or indirectly, use, disclose, distribute, print,= =20or 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 giv= en nor endorsed by it.=20 > -------------------------------------------------------------------------= --- ---------- >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf=20 > _______________________________________________ > 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 >=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 -------------------------------------------------------------------------= ------------- |
|
From: Per W. <pw...@ia...> - 2002-10-21 15:12:19
|
wxWindows is a bit easier to use, but that comes with a couple of gotchas for an old MFC programmer. MFC uses VERY aggresive broadcasts of events between the different windows in the program. In wxWindows on the other hand, you often notices that for an example a list control doesn't get a menu event, because one of the parent windows have processed the event - or actually, decided not to forward the event any deeper in the hierarchy. So either you have to modify the parent window to specifically pick up the event and forward it yourself, or you have to teach the list control to register an event handler filter to make sure that it catches the event. Other thins to notice is that depending on the defines used when compiling the wxWindows library for Windows, a number of nice extras might not work. If you check around in the source code, you will notice that you have to add _WIN32_IE=3D0x???? something, to specify which minimum version of windows "gadgets" to support, i.e. if you have tree controls, and what the tree control may do, if you should be able to set color for individual=20 lines of a list control etc. There are also some regions of the wxWindows library that are more than a little bit "rough". Try to write a well-behaved print-preview, and yoy'll quickly notice that this is kind of work in progress. If the user selects 70% scale in a preview input field, your code doesn't get to see this value, but after a lot of evaluation - comparing the received windows memory context with the printer context, you might have to set a scaling factor of 1.05 in the device context to get the 70% scaling :-) The availability of really good resource editors for wxWindows are also a bit lacking compared to MFC. But in the end. Why pay to M$, when wxWindows WILL manage to create commercial-grade applications, and with the side effect of making a carefully crafted program to work on Mac, OS/2, Linux GTK, Linux Motif, Win 3.1... besides the Win32 version. And if you find a bug, YOU may fix it the same day. /Per W On Mon, 21 Oct 2002, Santiago Palmier Campos wrote: > Hi Luis, >=20 > >From my personal experience (I've been programming with MFC from some ti= me > ago [4-5 years]), what I can tell you is that programming wxWindows IS mu= ch > EASIER than programming M$ MFC and/or win32 API.=20 >=20 > I've been using wxWindows for 6 months now, but I really think that it ma= kes > sense to use this library. >=20 > wxWindows classes are well structured, you are able to modify / extend th= em > and you can contribute to improve the library by submitting your code to > wxWindows development team. You are NOT forced to use doc/view apps even > when there's no need for that programming structure, etc... >=20 > Please have also in mind that: >=20 > - =09wxWindows source is portable between M$ Windows and some UNIX > flavours (Solaris, Linux,...) > =09MFC / win32 API is NOT portable in any way. >=20 > - =09wxWindows source can be compiled with MinGW / M$ VC++ / Borland / > etc... > =09MFC can ONLY be compiled with M$ VC++ >=20 > - =09some MFC code does NOT follow C/C++ 'good programming techniques' > nor 'real' templates, etc... > =09=09(take a look at MFC code, you'll find some goto's and much > more ;o)=20 > =09wxWindows IS pure C++ without 'shortcuts' ;oD >=20 > -=09It is likely to happen that MFC became obsolete since .NET have born > =09wxWindows will be 'alive' whenever people use it: we've got the > sources! >=20 > Just my 2 cents! >=20 > ~Santy > PS: I do not consider myself a 'guru', that's another reason why I like s= uch > a library like wxWindows: it makes my life easier!!! >=20 > -----Original Message----- > From: Louis Godio [mailto:lg...@ya...]=20 > Sent: s=E1bado, 19 de octubre de 2002 0:14 > To: Santiago Palmier Campos; dev-cpp-users-list > Subject: RE: [Dev-C++] WxWINDOW >=20 >=20 > Based on the Santiago's note, it seems like wxWindows is a lot of effort = to > set up correctly. Could someone experienced with wxWindows tell us if it = is > worth all this effort ? >=20 >=20 >=20 > --- Santiago Palmier Campos <San...@yd...> wrote: > > Hi *, > >=20 > > If you don't use Dev-C++ package and you want to use wxWindows sources= =20 > > 'by yourself', there are only a few things you must do in order to use > > wxWindows... > >=20 > > Download wxWindows sources (from http://wxwindows.sourceforge.net/), > > download also 'extra.zip' file (from http://wxwindows.sourceforge.net/= =20 > > also, but only if you don't use MSYS from=20 > > http://mingw.sourceforge.net/) and then, > > FIRST OF ALL, please read the file: %WXWIN%/docs/msw/install.txt=20 > >=20 > > You'll find everything you'll need in order to install it!!! > >=20 > > Anyway here you have a 'Quick How To'... > >=20 > > Set a few environment variables: > > =09WXWIN to the path where you decompressed wxWindows sources, > > =09if needed, BISON_SIMPLE & BISON_HAIRY to the complete path to files > > (complete/path/to/folder/plus/filename.extension) > >=20 > > Edit %WXWIN%\src\makeg95.env, search through the options and set them= =20 > > to the appropriate values to fit your system needs; I just changed the > > following > > ones (keep in mind that these are MY values for WinAPI & MinGW > > installation > > ;o): > > =09MINGW32=3D1 > > =09MINGW32VERSION=3D3.2 > > =09YACC=3Dbison > > =09CPU=3Dpentium4 > > =09COMPPATHS =3D -I"D:/WinAPI/include" -I"D:/MinGW/include" > > =09Perhaps you may want to include these two also: > > -I"D:/MinGW/include/sys" -I"D:/MinGW/include/c++/3.2" > >=20 > > ...And add the appropriate dirs to this one (keeping the original=20 > > stuff, of > > course): > > =09LDFLAGS =3D (...original stuff...) -L"D:/MinGW/lib" -L"D:/WinAPI/li= b" > >=20 > > Then cd to %WXWIN%\src\msw and use make -f makefile.g95 clean / make=20 > > -f makefile.g95 and wait... That's all!!! You'll have wxWindows ready= =20 > > to use (there are a few more options to use the > > wxWindows DLL, so read the docs, please...) > >=20 > > You'll only need to use a makefile like the following one, you only=20 > > have to modify 'OBJECTS' to fit your needs: > > =09# Makefile for wxWindows (Mingw32). > > =09# WXDIR =3D D:/wxWindows/v2.3.3 > >=20 > > =09TARGET=3DMyApp > > =09OBJECTS =3D $(TARGET).o MyFrame.o MyOtherStuff.o > >=20 > > =09include $(WXDIR)/src/makeprog.g95 > >=20 > > Hope this helps > > Santy > >=20 > > -----Original Message----- > > From: Carlos Garc=EDa del Monte [mailto:cg...@wo...] > > Sent: jueves, 17 de octubre de 2002 22:24 > > To: ma...@al...; dev-cpp-users-list > > Subject: Re: [Dev-C++] WxWINDOW > >=20 > >=20 > > Oh, sorry, I thought you got the package from dev home page, which is= =20 > > a devpak. > >=20 > > What I did was this: (having gcc[C:\Dev-Cpp\Bin] in the path) > > 1- I unpacked it to C:\wxMSW > > 2 - open command.exe > > 3 - cd to C:\wxMSW\src > > 4 - type make -f makefile.g95 and wait, then I ran over some of the=20 > > other folders seeing that in all of them the result was "make nothing= =20 > > to be done > > for all", so I gave it as built. Well, there were a couple of utilities > > about dialog editor or something like that, I cd to there and make etc. > >=20 > > The bad news are that I never could make it work, except for the=20 > > examples that were with it, which compiled fine, I tried some examples= =20 > > for > > Dev-C++ > > and I couldn't compile any one. > >=20 > > The first you must do when making a project is define __GNUWIN32__ and= =20 > > define UNICODE, and define __WXMSW__ > >=20 > > And a lot of compiler options, linker parameters... search in the dev= =20 > > mailing list, I don't remember when they answered me with all those=20 > > options you must provide, more or less six or seven months ago or=20 > > before. > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by: viaVerio will pay you up to $1,000= =20 > > for every account that you consolidate with us. > > http://ad.doubleclick.net/clk;4749864;7604308;v? > > http://www.viaverio.com/consolidator/osdn.cfm > > _______________________________________________ > > 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=20 > > intended solely for the use of the individual or entity to whom they=20 > > are addressed. No confidentiality > > or privilege is waived or lost by any wrong transmission.=20 > > If you have received this message in error, please immediately destroy > > it 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 > > given nor endorsed by it.=20 > > > -------------------------------------------------------------------------= --- > ---------- > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf=20 > > _______________________________________________ > > 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 >=20 >=20 > __________________________________________________ > Do you Yahoo!? > Faith Hill - Exclusive Performances, Videos & More > http://faith.yahoo.com > -------------------------------------------------------------------------= ------------- > 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= and 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= nor endorsed by it.=20 > -------------------------------------------------------------------------= ------------- >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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 >=20 |
|
From: Johnathon R. L. <jr...@ch...> - 2002-10-21 15:08:14
|
Hello All,
I try to create a new FLTK project. After saving the
boilerplate files (created by choosing the FLTK type
project), my doubleE.cpp files contents look like this:
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
int
main (int argc, char *argv[])
{
Fl_Window *window;
Fl_Box *box;
window = new Fl_Window (300, 180);
box = new Fl_Box (20, 40, 260, 100, "Hello World!");
box->box (FL_UP_BOX);
box->labelsize (36);
box->labelfont (FL_BOLD+FL_ITALIC);
box->labeltype (FL_SHADOW_LABEL);
window->end ();
window->show (argc, argv);
return Fl::run();
}
When I try to compile, I receive this compiler error:
Line: make.exe
Unit: F:\doubleE\make.exe
Message: Interrupt/Exception caught(code=0xc0000005, addr
= 0x41bd7a)
I believe I've done this successfully in the past and am
unsure of what I may have changed. Any suggestions?
Thanks,
JLee
|
|
From: Per W. <pw...@ia...> - 2002-10-21 14:53:31
|
But since this is the dev-cpp mailing list, I kind of assumed that he wanted to use the IDE functionality of Dev-Cpp, which includes the generation of make-files. I'm not using the pre-packaged wxWindows package for dev-cpp, but I kind of assume that the package comes with a project template. If it doesn't, it's quite easy to create a suitable template, by duplicating the different flags and settings that the wxWindows make-files uses. /Per W On Mon, 21 Oct 2002, Santiago Palmier Campos wrote: > Hi again, >=20 > In order to use all wxWindows switches & options for MinGW, you'll only n= eed > to use a makefile like the following one (you only have to modify 'OBJECT= S' > to fit your needs): > <MAKEFILE> > =09# Makefile for wxWindows (Mingw32). > =09# WXDIR =3D D:/wxWindows/v2.3.3 (or whatever your base directory is) >=20 > =09TARGET=3DMyApp > =09OBJECTS =3D $(TARGET).o MyFrame.o MyOtherStuff.o >=20 > =09include $(WXDIR)/src/makeprog.g95 > </MAKEFILE> >=20 > This is almost the same makefile used by the samples provided by wxWindow= s! > So if you are able to build them you'll be able to compile your own proje= ct. >=20 > Hope this helps! > Regards, Santy >=20 > -----Original Message----- > From: Per Westermark [mailto:pw...@ia...]=20 > Sent: lunes, 21 de octubre de 2002 15:57 > To: Santiago Palmier Campos > Cc: 'ma...@al...'; dev...@li... > Subject: RE: [Dev-C++] WxWINDOWS and Dev-C++ >=20 >=20 > The problem is that you have forgotten do define which compiler environme= nt > you are using. >=20 > Deefine __GNUWIN32__ and wxWindows will select a suitable string compare > function. >=20 > A good trick when playing along with the wxWindows kit is to run the > makefiles in the samples directory. When they compile the code, you will = see > a number of parameters sent to gcc. If you make sure that your own projec= ts > uses the same parameters, you will be home-free. >=20 > You will get all needed libraries, same settings for run-time type > information, debug settings etc. >=20 > /Per W >=20 > On Mon, 21 Oct 2002, Santiago Palmier Campos wrote: >=20 > > Hi Mark, > >=20 > > This error may appear due to... > >=20 > > ...uncomplete/wrong build of wxWindows libraries; so you have to=20 > > rebuild the libraries correctly. > >=20 > > ...wrong order for include directories, please check them and take a=20 > > look > > at: > > > http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Directory-Options.html#Director= y%2 > > 0Options > > I think it is really useful sometimes ;o) > >=20 > > Hope this helps! > > Regards > >=20 > > Santy > > PS: wxWindows is not so hard/difficult to use, just be a little bit=20 > > patient at the beginning, follow the README instructions and take a=20 > > look at some tutorials, they are great!!! Just my 2 cents! > >=20 > > -----Original Message----- > > From: Mark L. Wise [mailto:ma...@al...] > > Sent: s=E1bado, 19 de octubre de 2002 0:03 > > To: dev...@li... > > Subject: [Dev-C++] WxWINDOWS and Dev-C++ > >=20 > >=20 > > Hello all! > >=20 > > Sorry to be such a pain regarding WxWINDOWS and Dev-C++, but.... > >=20 > > I have been trying to compile some of the sample code included with=20 > > the WxWINDOWS package. When I try compiling I get the following=20 > > message (along with other things...) > >=20 > > 4 C:\PROGRAM FILES\DEV-C++\include\wx\string.h:170 > > #error "Please define string case-insensitive compare for your=20 > > OS/compiler" > >=20 > > So... How do I define string case-insensitive compare in Dev-C++??? > >=20 > > Thanks in advance... > >=20 > > Mark > >=20 > > Alpha II Service, Inc. > > 1312 Epworth Avenue > > Reynoldsburg, Ohio 43068 > > 614 868-5033 (Voice) > > 617 812-5838 (Fax) > >=20 > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf=20 > > _______________________________________________ > > 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 = it > 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 giv= en > nor endorsed by it.=20 > > > -------------------------------------------------------------------------= --- > ---------- > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf=20 > > _______________________________________________ > > 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 > >=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= and 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= nor endorsed by it.=20 > -------------------------------------------------------------------------= ------------- >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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 >=20 |
|
From: Santiago P. C. <San...@yd...> - 2002-10-21 14:11:40
|
Hi again, In order to use all wxWindows switches & options for MinGW, you'll only n= eed to use a makefile like the following one (you only have to modify 'OBJECT= S' to fit your needs): <MAKEFILE> =09# Makefile for wxWindows (Mingw32). =09# WXDIR =3D D:/wxWindows/v2.3.3 (or whatever your base directory is) =09TARGET=3DMyApp =09OBJECTS =3D $(TARGET).o MyFrame.o MyOtherStuff.o =09include $(WXDIR)/src/makeprog.g95 </MAKEFILE> This is almost the same makefile used by the samples provided by wxWindow= s! So if you are able to build them you'll be able to compile your own proje= ct. Hope this helps! Regards, Santy -----Original Message----- From: Per Westermark [mailto:pw...@ia...]=20 Sent: lunes, 21 de octubre de 2002 15:57 To: Santiago Palmier Campos Cc: 'ma...@al...'; dev...@li... Subject: RE: [Dev-C++] WxWINDOWS and Dev-C++ The problem is that you have forgotten do define which compiler environme= nt you are using. Deefine __GNUWIN32__ and wxWindows will select a suitable string compare function. A good trick when playing along with the wxWindows kit is to run the makefiles in the samples directory. When they compile the code, you will = see a number of parameters sent to gcc. If you make sure that your own projec= ts uses the same parameters, you will be home-free. You will get all needed libraries, same settings for run-time type information, debug settings etc. /Per W On Mon, 21 Oct 2002, Santiago Palmier Campos wrote: > Hi Mark, >=20 > This error may appear due to... >=20 > ...uncomplete/wrong build of wxWindows libraries; so you have to=20 > rebuild the libraries correctly. >=20 > ...wrong order for include directories, please check them and take a=20 > look > at: > http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Directory-Options.html#Director= y%2 > 0Options > I think it is really useful sometimes ;o) >=20 > Hope this helps! > Regards >=20 > Santy > PS: wxWindows is not so hard/difficult to use, just be a little bit=20 > patient at the beginning, follow the README instructions and take a=20 > look at some tutorials, they are great!!! Just my 2 cents! >=20 > -----Original Message----- > From: Mark L. Wise [mailto:ma...@al...] > Sent: s=E1bado, 19 de octubre de 2002 0:03 > To: dev...@li... > Subject: [Dev-C++] WxWINDOWS and Dev-C++ >=20 >=20 > Hello all! >=20 > Sorry to be such a pain regarding WxWINDOWS and Dev-C++, but.... >=20 > I have been trying to compile some of the sample code included with=20 > the WxWINDOWS package. When I try compiling I get the following=20 > message (along with other things...) >=20 > 4 C:\PROGRAM FILES\DEV-C++\include\wx\string.h:170 > #error "Please define string case-insensitive compare for your=20 > OS/compiler" >=20 > So... How do I define string case-insensitive compare in Dev-C++??? >=20 > Thanks in advance... >=20 > Mark >=20 > Alpha II Service, Inc. > 1312 Epworth Avenue > Reynoldsburg, Ohio 43068 > 614 868-5033 (Voice) > 617 812-5838 (Fax) >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf=20 > _______________________________________________ > 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 = it and kindly=20 > notify the sender by reply email. > You must not, directly or indirectly, use, disclose, distribute, print,= =20or 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 giv= en nor endorsed by it.=20 > -------------------------------------------------------------------------= --- ---------- >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf=20 > _______________________________________________ > 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 >=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 -------------------------------------------------------------------------= ------------- |
|
From: Per W. <pw...@ia...> - 2002-10-21 13:57:57
|
The problem is that you have forgotten do define which compiler environment you are using. Deefine __GNUWIN32__ and wxWindows will select a suitable string compare function. A good trick when playing along with the wxWindows kit is to run the makefiles in the samples directory. When they compile the code, you will see a number of parameters sent to gcc. If you make sure that your own projects uses the same parameters, you will be home-free. You will get all needed libraries, same settings for run-time type information, debug settings etc. /Per W On Mon, 21 Oct 2002, Santiago Palmier Campos wrote: > Hi Mark, >=20 > This error may appear due to... >=20 > ...uncomplete/wrong build of wxWindows libraries; so you have to rebuild = the > libraries correctly. >=20 > ...wrong order for include directories, please check them and take a look > at: > http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Directory-Options.html#Director= y%2 > 0Options > I think it is really useful sometimes ;o) >=20 > Hope this helps! > Regards >=20 > Santy > PS: wxWindows is not so hard/difficult to use, just be a little bit patie= nt > at the beginning, follow the README instructions and take a look at some > tutorials, they are great!!! Just my 2 cents! >=20 > -----Original Message----- > From: Mark L. Wise [mailto:ma...@al...]=20 > Sent: s=E1bado, 19 de octubre de 2002 0:03 > To: dev...@li... > Subject: [Dev-C++] WxWINDOWS and Dev-C++ >=20 >=20 > Hello all! >=20 > Sorry to be such a pain regarding WxWINDOWS and Dev-C++, but.... >=20 > I have been trying to compile some of the sample code included with the > WxWINDOWS package. When I try compiling I get the following message (alo= ng > with other things...) >=20 > 4 C:\PROGRAM FILES\DEV-C++\include\wx\string.h:170 > #error "Please define string case-insensitive compare for your OS/compile= r" >=20 > So... How do I define string case-insensitive compare in Dev-C++??? >=20 > Thanks in advance... >=20 > Mark >=20 > Alpha II Service, Inc. > 1312 Epworth Avenue > Reynoldsburg, Ohio 43068 > 614 868-5033 (Voice) > 617 812-5838 (Fax) >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf _______________________________________________ > 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 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= and 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= nor endorsed by it.=20 > -------------------------------------------------------------------------= ------------- >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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 >=20 |
|
From: Santiago P. C. <San...@yd...> - 2002-10-21 12:07:14
|
Hi Roberto, Are you sure you are not compiling 'C++' code but 'C' code ?=20 (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 =09Why do you need to use namespaces? =09Are you including '<iostream>' or '<stdio.h>'? Regards, Santy :o? -----Original Message----- From: Roberto Ricardi [mailto:rob...@ar...]=20 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 distributi= on errors Hi Horst, Nope, have not ' using namespace std;' in my code. Regards h.r...@gm... wrote: >>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 references, = >>but some looks wrong. Im working in c just not c++. >> >>This is the dump compiler / linker results (help linker tell me some >>about generic error in your source) of course all work well with the=20 >>distribution from dev-cpp. >> >>=BFAny ideas? >>=20 >>[Linker error] undefined reference to `std::ios_base::Init::Init()'=20 >>[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 >> >Hi, > >i use mingw 2.0.0.3 too and all works fine. >You have included:=20 >using namespace std;=20 >in your code ? > >Horst > > =20 > ------------------------------------------------------- This sf.net email is sponsored by: Access Your PC Securely with GoToMyPC. Try Free Now 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 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 -------------------------------------------------------------------------= ------------- |
|
From: Christophe C. <chr...@fr...> - 2002-10-21 12:04:20
|
> i am trying to compile a program written in visual c++ 6.0 and it says this is the first use of 'int troupper' function and no declaration of it! where can i get an include file with it or what should i put in my source code?? I think there's no function named troupper. You should have mispelled the standard toupper() function provided in... well, I don't remember, maybe string.h or stdlib.h, or another standard C library... Good luck Krap |