dev-cpp-users Mailing List for Dev-C++ (Page 282)
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: <or...@vp...> - 2003-12-12 13:48:45
|
Hi! Hehe. What is this, some common type of homework or book excersise? :) Some time ago, someone asked *exactly* this question, and at least 2 solutions were supplied. However, the subject of the letter doesn't indicate the question, so no wonder you haven't found it. Anyway, look here: http://sourceforge.net/mailarchive/message.php?msg_id=6318449 for my solution, but there are others as well. -- Greetings, Balázs |
|
From: Timo D. <tim...@we...> - 2003-12-12 13:39:23
|
Hello This is my first post :) I hope someone could help... I want to use DevCpp for a .c source with an external makefile and externa= l headers and libraries. Furthermore, I don't want to build a .exe but a .= mi file. That binary is supposed to run on a digital signal processor and = not on a pc. Up to now, I successfully used Cygwin to build this special .mi. So I have= that makefile to do this. The makefile calls "tmcc.exe" which is a specia= l compiler for trimedia devices.=20 I installed DevCpp 4.9.8.0, created a new empty project and added (project= ->project options->makefile ) my external makefile to the project. I tried= to compile the source and got a error : ///////////////////////////////////////////////////////////////////// Compiler: Default compiler Building Makefile: "C:\Programme\dve-2\examples\vivo4work\Makefile.win" F=FChrt make... aus make.exe -f "C:\Programme\dve-2\examples\vivo4work\Makefile.win" all gcc.exe -c vivo=5Finit.c -o vivo=5Finit.o -host nohost -el -O5 -DNO=5FDP -DL2=5FL= OAD=5FADDR=3D0x00000840 gcc.exe: cannot specify -o with -c or -S and multiple compilations make.exe: *** [vivo=5Finit.o] Error 1 Ausf=FChrung beendet ////////////////////////////////////////////////////////////////////// Any ideas =3F best wishes, Timo =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F WEB.DE FreeMail wird 5 Jahre jung! Feiern Sie mit uns und nutzen Sie die neuen Funktionen http://f.web.de/features/=3Fmc=3D021130 |
|
From: Dinesh P. <dp...@gm...> - 2003-12-12 13:28:07
|
Hello ppl,
i have been reading the Opengl SuperBible and using devc++ to do it;s
examples ... i got the book from my friend actually and he's lost the cd
.... so i don't have the source code and it can get cumbersome to write all
of it ... hence if someone has the source could u please email it to me at
dp...@re... ... it would be of great help .. thank u
adios,
dinesh.
- Perfection or Nothing.
|
|
From: Lyle J. <ly...@kn...> - 2003-12-12 13:14:28
|
On Dec 12, 2003, at 8:08 AM, Maya wrote: > I am using FOX version = FOX_MAJOR 1, FOX_MINOR 1, FOX_LEVEL 30. > When compiling I get this message: > > -I"C:/cygwin/usr/include/c++/3.2" -I"C:/cygwin/usr/include/c++/3.3.1" > -I"C:/cygwin/usr/include/c++/3.3.1/backward" > -I"C:/cygwin/usr/include/c++/3.3.1/i686-pc-cygwin" > -I"C:\DEV-CPP\\include\fox" > windres.exe -i Project1_private.rc -I rc -o Project1_private.res -O > coff > Option -I is deprecated for setting the input format, please use -J > instead. > g++.exe Templates/main.o Project1_private.res -o "Project1.exe" > -L"C:/cygwin/lib" -L"C:/cygwin/usr/fox" -mwindows -lfox -lwinspool > -lwsock32 -lpng -ltiff -ljpeg -lz > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ > ld: cannot find -lfox collect2: ld returned 1 exit status > make: *** [Project1.exe] Error 1 > Execution terminated > > I installed fox using Fox.devpak, what else should I do? The FOX library name is usually spelled "libFOX.*", with uppercase letters for the "FOX" part. The link line that you showed appears to be looking for a "libfox.*", where the "FOX" part is spelled with lowercase letters. You probably need to check the list of libraries linked into your application (however that is done in Dev-C++) and change the spelling of that library from "fox" to "FOX". |
|
From: Maya <Esc...@ne...> - 2003-12-12 11:14:48
|
s2...@st... wrote: >No, the stack is never cleared (push and pop don't delete data, just >declare it useless) so on its top there are datas > Ehmm, data is the plural, and datum the singular. Sorry! >of the other functions >you invoked, or random data; but vectors are used from top to bottom, so >that loop won't print that, but all internal vars previously allocated, >the function (main) arguments, and so on until some of this is 0 or is >reached the end of the segment (that results in a segmentation fault on >Unix and an access violation in Windows).. > > -- Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Maya <Esc...@ne...> - 2003-12-12 11:00:58
|
I am using FOX version = FOX_MAJOR 1, FOX_MINOR 1, FOX_LEVEL 30. When compiling I get this message: -I"C:/cygwin/usr/include/c++/3.2" -I"C:/cygwin/usr/include/c++/3.3.1" -I"C:/cygwin/usr/include/c++/3.3.1/backward" -I"C:/cygwin/usr/include/c++/3.3.1/i686-pc-cygwin" -I"C:\DEV-CPP\\include\fox" windres.exe -i Project1_private.rc -I rc -o Project1_private.res -O coff Option -I is deprecated for setting the input format, please use -J instead. g++.exe Templates/main.o Project1_private.res -o "Project1.exe" -L"C:/cygwin/lib" -L"C:/cygwin/usr/fox" -mwindows -lfox -lwinspool -lwsock32 -lpng -ltiff -ljpeg -lz /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cannot find -lfox collect2: ld returned 1 exit status make: *** [Project1.exe] Error 1 Execution terminated I installed fox using Fox.devpak, what else should I d? -- Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Ferdinando F. <s2...@st...> - 2003-12-12 11:00:37
|
On Thu, 11 Dec 2003, Paul Ingelbrant wrote: > Well, to me it seems that the explanation is that GCC stores the variables > declared in main on the stack! If you put the declaration of the v vector > outside main, the program will "work" just as with the other compilers. This > probably is because windoze will clear the memory (setting to zero) allocated to > the program before loading and executing it. The memory occupied by the stack is Yes, if you call gcc with the -S option you'll see that _every_ global var, unless differently specified, is initialized with the 0 value, but this is true for GCC and not for all compilers. > cleared just like all the rest, only it is messed up by some initialization code > executed before main starts executing. No, the stack is never cleared (push and pop don't delete data, just declare it useless) so on its top there are datas of the other functions you invoked, or random data; but vectors are used from top to bottom, so that loop won't print that, but all internal vars previously allocated, the function (main) arguments, and so on until some of this is 0 or is reached the end of the segment (that results in a segmentation fault on Unix and an access violation in Windows).. > > If you put the same code in some other function than main it won't work (except > by chance) regardless of which compiler you use. main is a function like others; simply some compilers can decide to inizialize vars pushing zeros instead of allocating blank spaces. I can't believe compilers can allocate as globals main internal vars. Bye Ferdinando |
|
From: Theodore K. <kyp...@ya...> - 2003-12-12 10:43:00
|
Hello everyone, I an new user of Dev-cpp. I am using GSL library and I would like to highlight some specific commands eg. gsl_vector_free with red color. Is it possible? I looked at "editor options" but couldn;t find anything. Thanks in advance, THeo. |
|
From: Per W. <pw...@ia...> - 2003-12-12 10:17:36
|
1: What happen if string starts with a space? 2: Why not reverse each word inplace instead of needing an extra string? while word length > 1 swap first and first + length - 1 increment start pos decrement word length with 2 /Per W |
|
From: Daniel G. <sp...@ho...> - 2003-12-12 10:03:45
|
Hi all,
I'd appreciate some code review on the logic of this function I wrote.
I'm using C# (does Dev support C# ?) (with the csc.exe compiler) to reverse
a string and after a bit of struggling (though an idiotic mistake on my part
- it is really embarassing) I managed it, and would like you to have a look
at the code and tell me if there is a better way of doing it.
The logic is in question here, so don't worry about not knowing C#.
StringManip is my class which has one 'string' member we are interested in,
mCompanyName, which is being reversed.
/* ReverseSentenceByWord() is a function that reverses individual words in a
string. It does this
by looking for spaces and reverses all the letters before that
space.
*/
public void ReverseSentenceByWord(ref StringManip SentenceObj)
{
string Sentence = SentenceObj.mCompanyName;
// This number increases each time the iterator moves forward,
counting the length of the word.
int CharsInWord = 0;
// StartOfWord is a marker for where the start of the word
begins. For example the first word will
// always start at 0 (first element), but the next word may
start 7 characters in (6).
// This is required to reverse only one word at a time.
int StartOfWord = 0;
int EndOfWord = 0;
int Iterator = 0;
// What is the total length of the sentence?
int TotalChars = Sentence.Length;
// While we are not at the end of the string continue to run the
code inside
while(Iterator != TotalChars)
{
// If this is the second time around then the start of the
word variable needs to change
// (otherwise we'd be counting from the first letter every
time).
StartOfWord = Iterator;
// Same for the number of characters in the word.
CharsInWord = 0;
// Count how many characters there are from the current
iterator position to the next space.
// But be sure to guard against indexing the end of the
array.
while(Sentence[Iterator] != ' ')
{
if (Iterator == TotalChars-1)
{
// We are on the last letter so to catch it we must
increase CharsInWord.
CharsInWord += 1;
break;
}
// Look at the next character
Iterator += 1;
CharsInWord += 1;
}
// In the case of a double space the character before will
be ' ' so guard against this first of all
// by saying "if the previous char is a space then loop
again".
if ( !((Iterator-1) == ' ') )
{
// Space found, so mark the end of the word as the
iterator's position minus one (we are sitting on a space
// at the moment). We still have the starting position
stored from the previous loop (or 0 if this is the first time).
EndOfWord = Iterator - 1;
// Perform a quick check to ensure that the CharsInWord
variable is correct.
if (CharsInWord == (EndOfWord - StartOfWord))
{
Console.WriteLine("\n\nNumbers do not match\nThe
number of characters reported in the word does not match the actual
amount.\n");
}
// Store the characters from the start of the word to
the end of the word (using CharsInWord counter).
string Temp = Sentence.Substring(StartOfWord,
CharsInWord);
// We must make a copy of Temp because we will use it in
replacing Temp's letters.
string TempCopy = Temp;
/* Reverse and output to screen.
We do this by replacing the first and last elements,
then the second and second
to last elements, then the third and third to last
elements, etc.
*/
// Make a copy of CharsInWord because we will be using
this copy to count down to the middle.
int CharsInTemp = CharsInWord;
// This variable exists outside the for loop and is
added to one character at a time.
// Chars cannot be converted to string types easily but
this method works.
string ReversedString = "";
// Extract the letters from TempCopy one at a time into
ReversedString.
for(int Loop=0; Loop<Temp.Length; Loop++)
{
// Make sure CharsInTemp becomes element 7 from the
off.
if (CharsInTemp != 0)
{
CharsInTemp--;
}
/* Create many chars and concatenate them together
in the reverse order */
char CurrentChar = Temp[CharsInTemp];
ReversedString += CurrentChar;
Console.WriteLine("{0}", ReversedString);
}
}
// Move the iterator forward one.
Iterator += 1;
// Force some space between word reversal in the window.
Console.WriteLine("\n\n");
}
_________________________________________________________________
Use MSN Messenger to send music and pics to your friends
http://www.msn.co.uk/messenger
|
|
From: Lyle J. <ly...@kn...> - 2003-12-12 00:58:32
|
On Dec 11, 2003, at 9:53 PM, Maya wrote: > g++.exe -c Templates/main.cpp -o Templates/main.o > -I"C:/cygwin/usr/include" -I"C:/cygwin/usr/include/c++" > -I"C:/cygwin/usr/include/c++/3.2" -I"C:/cygwin/usr/include/c++/3.3.1" > -I"C:/cygwin/usr/include/c++/3.3.1/backward" > -I"C:/cygwin/usr/include/c++/3.3.1/i686-pc-cygwin" > -I"C:/cygwin/usr/include/fox" -I"C:\DEV-CPP\\include\fox" > Templates/main.cpp: In constructor `MainWindow::MainWindow(FXApp*)': > Templates/main.cpp:54: error: `FXMenuBar' undeclared (first use this > function) > Templates/main.cpp:54: error: (Each undeclared identifier is reported > only once > for each function it appears in.) <snip> In FOX 1.0, the class name for the menu bar widget is FXMenubar (note the lowercase "b"). In FOX 1.1 (i.e. the fox-1.1.x development series) it has been renamed to FXMenuBar (with an uppercase "B"). Are the FOX header files that you're compiling against those from FOX 1.0 or FOX 1.1? If it's the former, you need the latter ;) And of course, you will need to link your executable against the corresponding version of the FOX library; if you're compiling against the fox-1.1.42 header files, be sure to link against the fox-1.1.42 version of the library. Note that the fox-1.1.x series is the unstable development version; it is quite possible that there will be API changes between whichever fox-1.1.x you're using and subsequent versions in that series. If you're looking for a stable FOX release to develop against, for now that version is FOX 1.0. Hope this helps, Lyle |
|
From: Maya <Esc...@ne...> - 2003-12-12 00:46:08
|
Yes, you are absolutely right!
The compiler message I meant to show was:
===================================================
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make clean
rm -f Templates/main.o Project1_private.res Project1.exe
g++.exe -c Templates/main.cpp -o Templates/main.o
-I"C:/cygwin/usr/include" -I"C:/cygwin/usr/include/c++"
-I"C:/cygwin/usr/include/c++/3.2" -I"C:/cygwin/usr/include/c++/3.3.1"
-I"C:/cygwin/usr/include/c++/3.3.1/backward"
-I"C:/cygwin/usr/include/c++/3.3.1/i686-pc-cygwin"
-I"C:/cygwin/usr/include/fox" -I"C:\DEV-CPP\\include\fox"
Templates/main.cpp: In constructor `MainWindow::MainWindow(FXApp*)':
Templates/main.cpp:54: error: `FXMenuBar' undeclared (first use this
function)
Templates/main.cpp:54: error: (Each undeclared identifier is reported
only once
for each function it appears in.)
Templates/main.cpp:54: error: `menubar' undeclared (first use this
function)
Templates/main.cpp:56: error: `FXToolBarShell' undeclared (first use this
function)
Templates/main.cpp:56: error: `dragshell1' undeclared (first use this
function)
Templates/main.cpp:56: error: parse error before `(' token
Templates/main.cpp:57: error: parse error before `(' token
Templates/main.cpp:60: error: `FXStatusBar' undeclared (first use this
function)
Templates/main.cpp:60: error: `statusbar' undeclared (first use this
function)
Templates/main.cpp:61: error: parse error before `(' token
make: *** [Templates/main.o] Error 1
Execution terminated
=============================================================
I am sorry for the confusion
ly...@kn... wrote:
> On Thu, 11 Dec 2003 17:46:16 -0800, Maya
> <Esc...@ne...> wrote :
>
>
>
>> Selecting New Project --> GUI --> FOX in DevCpp I started a FOX
>> project, but I get the following errors:
>> [...]
>> g++.exe man.o -o "Project1.exe" -L"C:/cygwin/lib" -L"C:/cygwin/usr/fox"
>> man.o(.text+0x9b):man.cpp: undefined reference to
>> `Fl_Window::Fl_Window[in-charge](int, int, char const*)'
>>
>
>
> <snip>
>
> I think what you have demonstrated is that in order to compile FLTK
> programs, you want to link against the FLTK libraries.
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Foxgui-users mailing list
> Fox...@li...
> https://lists.sourceforge.net/lists/listinfo/foxgui-users
>
>
--
Jorge Escalante
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the power to
make the innocent guilty and to make the guilty innocent, and that's
power. - Malcom X
* "Innocent until proven guilty", no... not in Canada!!
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Foxgui-users mailing list
Fox...@li...
https://lists.sourceforge.net/lists/listinfo/foxgui-users
|
|
From: Maya <Esc...@ne...> - 2003-12-12 00:41:38
|
A sample of the code would help. sr...@um... wrote: > I just installed Dev-C++ into the default directory. I opened up the > sample console project and I attempted to compile it. I got this error. > > Compiler: Default compiler > Building Makefile: "C:\Dev-Cpp\Testing\Makefile.win" > Executing make... > make.exe -f "C:\Dev-Cpp\Testing\Makefile.win" all > g++.exe main.o -o "Project1.exe" -L"C:/Dev-Cpp/lib" > > '0' is not recognized as an internal or external command, > operable program or batch file. > > make.exe: *** [Project1.exe] Error 1 > > Execution terminated > It's obviously not a programming problem but I'm not really sure what > config files to change or where to start looking for a fix to this > problem. I've reinstalled Dev-C++ twice now hoping that maybe it was a > non-defualt directory type error but still no luck. > -- Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Maya <Esc...@ne...> - 2003-12-12 00:34:09
|
Yes, you are absolutely right!
The compiler message I meant to show was:
===================================================
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make clean
rm -f Templates/main.o Project1_private.res Project1.exe
g++.exe -c Templates/main.cpp -o Templates/main.o
-I"C:/cygwin/usr/include" -I"C:/cygwin/usr/include/c++"
-I"C:/cygwin/usr/include/c++/3.2" -I"C:/cygwin/usr/include/c++/3.3.1"
-I"C:/cygwin/usr/include/c++/3.3.1/backward"
-I"C:/cygwin/usr/include/c++/3.3.1/i686-pc-cygwin"
-I"C:/cygwin/usr/include/fox" -I"C:\DEV-CPP\\include\fox"
Templates/main.cpp: In constructor `MainWindow::MainWindow(FXApp*)':
Templates/main.cpp:54: error: `FXMenuBar' undeclared (first use this
function)
Templates/main.cpp:54: error: (Each undeclared identifier is reported
only once
for each function it appears in.)
Templates/main.cpp:54: error: `menubar' undeclared (first use this function)
Templates/main.cpp:56: error: `FXToolBarShell' undeclared (first use this
function)
Templates/main.cpp:56: error: `dragshell1' undeclared (first use this
function)
Templates/main.cpp:56: error: parse error before `(' token
Templates/main.cpp:57: error: parse error before `(' token
Templates/main.cpp:60: error: `FXStatusBar' undeclared (first use this
function)
Templates/main.cpp:60: error: `statusbar' undeclared (first use this
function)
Templates/main.cpp:61: error: parse error before `(' token
make: *** [Templates/main.o] Error 1
Execution terminated
=============================================================
I am sorry for the confusion
ly...@kn... wrote:
>On Thu, 11 Dec 2003 17:46:16 -0800, Maya <Esc...@ne...> wrote :
>
>
>
>>Selecting New Project --> GUI --> FOX in DevCpp I started a FOX project,
>>but I get the following errors:
>> [...]
>>g++.exe man.o -o "Project1.exe" -L"C:/cygwin/lib" -L"C:/cygwin/usr/fox"
>>man.o(.text+0x9b):man.cpp: undefined reference to
>>`Fl_Window::Fl_Window[in-charge](int, int, char const*)'
>>
>>
>
><snip>
>
>I think what you have demonstrated is that in order to compile FLTK
>programs, you want to link against the FLTK libraries.
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: SF.net Giveback Program.
>Does SourceForge.net help you be more productive? Does it
>help you create better code? SHARE THE LOVE, and help us help
>YOU! Click Here: http://sourceforge.net/donate/
>_______________________________________________
>Foxgui-users mailing list
>Fox...@li...
>https://lists.sourceforge.net/lists/listinfo/foxgui-users
>
>
--
Jorge Escalante
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the
power to make the innocent guilty and to make the guilty
innocent, and that's power.
- Malcom X
* "Innocent until proven guilty", no... not in Canada!!
|
|
From: Per W. <pw...@ia...> - 2003-12-12 00:22:46
|
Some of the matematical operations are not meaningful if you can't represent a fractional value. /Per W On Thu, 11 Dec 2003, Mohamed Iqbal wrote: > 26.2/2: The effect of instantiating the template complex for any type other > than float, double or long double is unspecified. > > Does anybody know the reason for that? > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: <ly...@kn...> - 2003-12-11 23:05:45
|
On Thu, 11 Dec 2003 17:46:16 -0800, Maya <Esc...@ne...> wrote : > Selecting New Project --> GUI --> FOX in DevCpp I started a FOX project, > but I get the following errors: > [...] > g++.exe man.o -o "Project1.exe" -L"C:/cygwin/lib" -L"C:/cygwin/usr/fox" > man.o(.text+0x9b):man.cpp: undefined reference to > `Fl_Window::Fl_Window[in-charge](int, int, char const*)' <snip> I think what you have demonstrated is that in order to compile FLTK programs, you want to link against the FLTK libraries. |
|
From: Maya <Esc...@ne...> - 2003-12-11 22:39:00
|
I have installed FOX in "c:/cygwin/usr/"; I see that the header files are installed in "c:/cygwin/usr/include/fox" I added FOX path in the in the DevCpp as: Tools --> Compiler Options --> Directories --> C++ Includes --> [c:/cygwin/user/include/fox] I downloaded and installed the DevFox package. Selecting New Project --> GUI --> FOX in DevCpp I started a FOX project, but I get the following errors: ------------- Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Makefile.win" Executing make clean rm -f man.o Project1.exe g++.exe -c man.cpp -o man.o -I"C:/cygwin/usr/include" -I"C:/cygwin/usr/include/c++" -I"C:/cygwin/usr/include/c++/3.2" -I"C:/cygwin/usr/include/c++/3.3.1" -I"C:/cygwin/usr/include/c++/3.3.1/backward" -I"C:/cygwin/usr/include/c++/3.3.1/i686-pc-cygwin" -I"C:/cygwin/usr/include/fox" g++.exe man.o -o "Project1.exe" -L"C:/cygwin/lib" -L"C:/cygwin/usr/fox" man.o(.text+0x9b):man.cpp: undefined reference to `Fl_Window::Fl_Window[in-charge](int, int, char const*)' man.o(.text+0x1bb):man.cpp: undefined reference to `fl_define_FL_SHADOW_LABEL()' man.o(.text+0x1d5):man.cpp: undefined reference to `Fl_Group::end()' man.o(.text+0x1ee):man.cpp: undefined reference to `Fl_Window::show(int, char**)' man.o(.text+0x1f3):man.cpp: undefined reference to `Fl::run()' man.o(.text$_ZN6Fl_BoxC1EiiiiPKc+0x30):man.cpp: undefined reference to `Fl_Widget::Fl_Widget[not-in-charge](int, int, int, int, char const*)' man.o(.text$_ZN6Fl_BoxC1EiiiiPKc+0x39):man.cpp: undefined reference to `vtable for Fl_Box' collect2: ld returned 1 exit status make: *** [Project1.exe] Error 1 Execution terminated ------------ Can anyone help? What else do I have to do? -- FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X |
|
From: Alessandro B. <al...@vi...> - 2003-12-11 22:30:29
|
Hi=20 I'd like to capture pictures from a video camera connected by USB to my = computer. Someone knows which API is possible to use with DevCpp? Thanks Alessandro |
|
From: Chris S. <CS...@Ai...> - 2003-12-11 22:11:57
|
-----Original Message----- From: Chris Sroka=20 Sent: Thursday, 11 December 2003 11:48 AM To: 'Per Westermark' Subject: RE: [Dev-C++] Build error in rc file. Per,=20 When I use this control, the string contains initialisation text which = appears as if the user had typed it in. So the declaration is=20 EDITTEXT <"initalisation string">, = <identifier>,<x>,<y>,<width>,<height>,<flags> Regards=20 Chris=20 -----Original Message----- From: Per Westermark [mailto:pw...@ia...] Sent: Thursday, 11 December 2003 10:50 AM To: Chris Sroka Cc: OROSZI Bal=E1zs; dev...@li... Subject: RE: [Dev-C++] Build error in rc file. EDITTEXT doesn't have a string before the identifier. EDITTEXT <identifier>,<x>,<y>,<width>,<height>,<flags> Are you thinking about LTEXT or CONTROL? /Per W On Wed, 10 Dec 2003, Chris Sroka wrote: > If it's not a syntax error, it's usually because: > > 1) you have not declared a variable, such as IDC_STATIC4 in > EDITTEXT "", IDC_STATIC4,80, 90, 30, 12 > > 2) you have declared it but not saved the file containing the = declaration > > If this doesn't help then email the actual lines containing the faulty = code. > > Chris > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of OROSZI > Bal=E1zs > Sent: Thursday, 11 December 2003 8:49 AM > To: dev...@li... > Subject: Re: [Dev-C++] Build error in rc file. > > > Philippe Lucas wrote: > > I have created a Windows c++ project on the latest version of = Dev-C++ IDE > > with the import function of a Visual C++ project. > > The compilation works but I have an error during the building of the > > ressource with messages like : Line XXX in file zzz.rc : parse = error. > > > > Any idea ? > > There is a syntax error in line XXX. > > -- > Greetings, > Bal=E1zs > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys = admin. > Click now! = http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listin |
|
From: Paul I. <pi...@ot...> - 2003-12-11 21:39:33
|
Quoting hu...@cl...: =09 > Hi all,=20 > in others compilers this is the result :=20 > =09 > 10=20 > 200=20 > =09 > of this program :=20 > #include=20 > main <http://pcp.clix.pt/images/canais/webmail2/smile/kiss.gif>=20 > {=20 > int v[3],i;=20 > v[0]=3D10;=20 > v[1]=3D200;=20 > i=3D0;=20 > while(v[i]!=3D'\0')=20 > {=20 > printf("%d\n",v[i]);=20 > i++;=20 > }=20 > }=20 > =09 > in dev-c++compiler i have the this result :=20 > 10=20 > 200=20 > 2293664=20 > 4198592=20 > 4210688=20 > 4210692=20 > 2293664=20 > 4198757=20 > 1=20 > 4138088=20 > 4139640=20 > 4198553=20 > =09 > =09 > Why ?????=20 > =09 > Thanks.=20 >=20 > -- > Hugo Dias > =20 Well, to me it seems that the explanation is that GCC stores the variable= s declared in main on the stack! If you put the declaration of the v vector outside main, the program will "work" just as with the other compilers. T= his probably is because windoze will clear the memory (setting to zero) alloc= ated to the program before loading and executing it. The memory occupied by the s= tack is cleared just like all the rest, only it is messed up by some initializati= on code executed before main starts executing. If you put the same code in some other function than main it won't work (= except by chance) regardless of which compiler you use. A way to verify this behavior is to put "int v[3000000]" outside of main = and inside. And yes, the program crashes if you put the declaration inside ma= in, because windows don't allow you to allocate that much (at once) on the st= ack. My guess is that the other compilers treat declarations inside main as if th= ey were put outside of main (go ahead and try).=20 Note that the clearing of memory before loading and executing the program= is not part of the C/C++ standards but is dependent on the OS. Visal C++ (when debugging) even initialize memory to 0xaa (or was it 0x55?) to help detec= ting this kind of bugs.=20 /Paul I |
|
From: <age...@co...> - 2003-12-11 20:03:50
|
Reinstall. This happens way too much. If I can find mine, I can copy it and send it to you if you wish. -- ~~Scott Simontis~~ Programmer > When running vUpdate I get an error message that reads > "Error: Your devcpp.cfg file is missing" > What can I do to fix this? > > -- > > Jorge Escalante > FYI > http://www.astro.umd.edu/~marshall/abbrev.html > > E-Mail Policy > http://www.vif.com/users/escalante/Email_Policy.html > > * You cannot exercise your power to a point of humiliation. > - Jean Chretien > > * The media's the most powerful entity on earth. They have the > power to make the innocent guilty and to make the guilty > innocent, and that's power. > - Malcom X > * "Innocent until proven guilty", no... not in Canada!! > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Mohamed I. <mi...@ac...> - 2003-12-11 19:43:30
|
26.2/2: The effect of instantiating the template complex for any type other than float, double or long double is unspecified. Does anybody know the reason for that? |
|
From: Stas <sr...@um...> - 2003-12-11 19:39:13
|
I just installed Dev-C++ into the default directory. I opened up the = sample console project and I attempted to compile it. I got this error. Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Testing\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Testing\Makefile.win" all g++.exe main.o -o "Project1.exe" -L"C:/Dev-Cpp/lib"=20 '0' is not recognized as an internal or external command, operable program or batch file. make.exe: *** [Project1.exe] Error 1 Execution terminated It's obviously not a programming problem but I'm not really sure what = config files to change or where to start looking for a fix to this = problem. I've reinstalled Dev-C++ twice now hoping that maybe it was a = non-defualt directory type error but still no luck. |
|
From: <or...@vp...> - 2003-12-11 19:28:52
|
Philippe Lucas wrote: > Ok I found the problem, yours responses show me that i have missed Visual > include for the ressources : > commctrl.rh, dde.rh, dlgs.h, winnt.rh, winres.h, winresrc.h, > winuser.rh,winver.h. > Thoses files are in the Visual Compiler directories. Just include <windows.h> and that will also work. -- Greetings, Balázs |
|
From: Maya <Esc...@ne...> - 2003-12-11 18:14:08
|
When running vUpdate I get an error message that reads "Error: Your devcpp.cfg file is missing" What can I do to fix this? -- Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |