dev-cpp-users Mailing List for Dev-C++ (Page 8)
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
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
1
(11) |
2
(9) |
3
(2) |
4
(6) |
5
(4) |
|
6
(1) |
7
(22) |
8
(3) |
9
(13) |
10
(14) |
11
(14) |
12
(5) |
|
13
(5) |
14
(5) |
15
(6) |
16
(1) |
17
(2) |
18
(1) |
19
(2) |
|
20
(4) |
21
(13) |
22
(14) |
23
(8) |
24
(3) |
25
(5) |
26
(3) |
|
27
(7) |
28
(3) |
29
|
30
(10) |
31
(3) |
|
|
|
From: spiro h. <spi...@gm...> - 2005-03-02 22:59:26
|
Some idiot called Braj Kishore <bra...@re...> wrote: > I have downloaded Bloddshed Dev C++ yeasterday and was very impressed. > I want to learn c++ using this tool. > I also want to know that, is it possible to develop a database application > using Dev c++, if so kindly let me know the procedure giving some example. > Right now i am using Ms-Access on the back end. > I shall be greatly obliged if you help me in learning C++. this forum isn't here to teach people how to code. Try buying a book, or reading a tutorial on the net. as for your database needs, look into xbase for portable database files which you can bundle with your app, or learn SQL for talking to database servers. but learn C++ first. -- "Here's a bucket, go and kick it." -- Kill Yourself (Stormtroopers of Death) http://spiroharvey.blogspot.com |
|
From: daniel <mag...@nt...> - 2005-03-02 22:55:10
|
Hello,
I am writing a program which asks the user whether they want to =
execute (open) a batch file or not.=20
I tried using the fopen function but it seems to only enable you to =
write to a file or read from a file (e.g. calculate the number of words =
in a given file).=20
What I want to do is open an external file. Is there a command for this? =
|
|
From: Daniel K. O. <dan...@ya...> - 2005-03-02 17:01:42
|
Hugo Veiga escreveu: > i'm compiling the following code: > > > > #include <sys/types.h> > > #include <sys/socket.h> > > #include <sys/time.h> > > #include <netinet/in.h> /* definition of struct sockaddr_in */ > > #include <netdb.h> /* definition of gethostbyname */ > > #include <arpa/inet.h> /* definition of inet_ntoa */ > > #include <unistd.h> /* definition of close */ > (...) > and i get the following errors: > > > > (...) > > > > In file included from main.cpp:6: > > stub.h:5:24: sys/socket.h: No such file or directory > > stub.h:7:63: netinet/in.h: No such file or directory > > stub.h:8:58: netdb.h: No such file or directory > This code won't compile on MinGW; these missing files aren't present on Win32. You can probably replace them by Winsock (#include <winsock.h>), but it differs in many details from BSD Sockets - at least for non-trivial programs. You have 2 options: * Learn to use both BSD Sockets and Winsock, and port the code. * Use Cygwin instead of MinGW, that tries to emulate the BSD Sockets behaviour. Daniel K. O. |
|
From: Hugo V. <ha...@me...> - 2005-03-02 16:20:46
|
hi there,
i'm compiling the following code:
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h> /* definition of struct sockaddr_in */
#include <netdb.h> /* definition of gethostbyname */
#include <arpa/inet.h> /* definition of inet_ntoa */
#include <unistd.h> /* definition of close */
#define TIMESTAMP 100
class Stub
{
public:
Stub();
~Stub();
int acceptClient(int server_fd);
int createServer(int port);
void reset();
void run(int ms);
private:
int fd;
fd_set rfds;
};
#endif //_STUB_H_
and i get the following errors:
Compiler: Default compiler
Building Makefile: "C:\Home\MyProjects\webots\controllers\Omni\Makefile.win"
Executing make...
make.exe -f "C:\Home\MyProjects\webots\controllers\Omni\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"lib/gcc/mingw32/3.4.2/include"
-I"include/c++/3.4.2/backward" -I"include/c++/3.4.2/mingw32"
-I"include/c++/3.4.2" -I"include" -I"C:/Program Files/Webots/include"
-I"C:/Program Files/Webots/include/device" -I"C:/Program
Files/Webots/include/ode" -I"C:/Program Files/Webots/include/physics"
-I"C:/Home/Programs/Dev-Cpp/include" -ansi -fexceptions -fshort-double
-fexpensive-optimizations -march=i686
In file included from main.cpp:6:
stub.h:5:24: sys/socket.h: No such file or directory
stub.h:7:63: netinet/in.h: No such file or directory
stub.h:8:58: netdb.h: No such file or directory
stub.h:9:54: arpa/inet.h: No such file or directory
In file included from main.cpp:6:
stub.h:27: error: `fd_set' does not name a type
make.exe: *** [main.o] Error 1
Execution terminated
I'm Using WinXP SP2 and the Dev-c++ 4.9.9.2
anyclues?
thank you
|
|
From: Braj K. <bra...@re...> - 2005-03-02 07:01:56
|
=A0=0A =A0=0AI have downloaded Bloddshed Dev C++ yeasterday and was very = impressed.=0AI want to learn c++ using this tool.=0A=0AI also want to know = that, is it possible to develop a database application using Dev c++, if so= kindly let me know the procedure giving some example. Right now i am using= Ms-Access on the back end.=0A=0AI shall be greatly obliged if you help me = in learning C++. =0ABraj =0A=0A=0A |
|
From: Braj K. <bra...@re...> - 2005-03-02 06:48:23
|
=A0=0A =A0=0AI have downloaded Bloddshed Dev C++ yeasterday and was very = impressed.=0AI want to learn c++ using this tool.=0A=0AI also want to know = that, is it possible to develop a database application using Dev c++, if so= kindly let me know the procedure giving some example. Right now i am using= Ms-Access on the back end.=0A=0AI shall be greatly obliged if you help me = in learning C++. =0ABraj =0A=0A=0A |
|
From: Marek J. <sp...@we...> - 2005-03-01 23:13:06
|
It wasn't intended, but does look nice ;) -- regards, Marek |
|
From: <ru...@wp...> - 2005-03-01 20:12:27
|
I am positively surprised by the instant availability of wxWidgets 2.5.4 devpaks just the next day after the release. Good work, keep it up! Thanks, Szczepan Holyszewski |
|
From: Alfred P. R. <al...@ya...> - 2005-03-01 19:49:14
|
Actually, I just found this out (the adding of the lib prefix and the .a suffix) recently (within the last 2 days) doing a very close read of the GCC documentation. I've been fighting this all the time I've used Dev-Cpp without catching that one little paragraph! So always read the documentation in full paying attention to all of the details. Per Westermark <pw...@ia...> wrote: You shouldn't rename a library file to lobj.a. The line -lobjc means that the linker is requested to use a file libobjc.a in the current library search path. If libobjc.a isn't in the path, you should either add the path, or change the options to look like: -L -lobjc which will add one more directory where the linker will look. /Per W On Sat, 26 Feb 2005, Alfred P. Reaud wrote: > Sometimes you have to forcibly put the library line in the Build Options-->Parameters-->Linker window in the form of: ../Dev-Cpp/lib/libfltk.a or whatever your path is. First try copying it to c:/dev-cpp/lib with it's original name, and if that doesn't work, then use the above form to force Dev-Cpp to link it. > > SlackRat wrote: <snip> Alfred P. Reaud |
|
From: Ray K. <kul...@wr...> - 2005-03-01 19:48:08
|
I've received a couple of messages asking about my response to Farzan's
question, so I'd like to clarify:
my answers were meant to be tongue-in-cheek. I was convinced that the
questions had been pulled directly from a homework assignment, and that
Farzan was attempting to cheat, so I attempted to humorously suggest that
he at least attempt to do the work himself before asking us for help.
Both answers I gave are incorrect, and the second code segment I included,
while probably undefined, will do nothing but print "cheater" to stdout
using the version of gcc that comes with Dev-C++ (at least, it did when I
tested it.) My goal was to show that I realized he was attempting to
cheat, and therefore convince him to do the work himself. However, it
would appear that sarcasm is not really my forte, so I'll probably just
stick to a serious response, as I did the last time someone posted a
homework question here, from now on. I offer my apologies for any
confusion I may have caused; that was not my intent.
Anyway, here's a more serious response to your question, Farzan:
The answers to both your questions will almost certainly be found in any
C++ textbook, and could also be discovered through a few minutes of
googling. It's fine if you ask about a specific problem that's been giving
you trouble, but you should at least attempt to discover a solution before
asking us for the answers.
I originally wrote:
> On Fri, 25 Feb 2005 15:01:15 -0800, Farzan Hajian wrote:
>> Hi,
>> I have two different questions:
>> -------------------------------------------
>> The First:
>> What is a static function? For example what is the difference
>> between the following function and its non-static version??
>> //Static Version:
>> Static int MyFunc(int n)
>> {
>> return n*2;
>> }
>> //Non-Static Version:
>> int MyFunc(int n)
>> {
>> return n*2;
>> }
> "static" for a function means the same thing as "const" for a
> variable. If you declare a function static, the compiler won't
> let you give separate definitions for the function in
> different source files.
> By the way, C++ is case sensitive, so you need to type
> "static" instead of "Static". Otherwise, you might get some
> points taken off for this question.
>
>> The Second:
>> How can I overload the "<<" operator?
>> Thanks,
> You didn't mention what datatype you wanted to overload it
> for, so I used a char*. It should be easy enough to convert
> this method to use another datatype.
> /*****************************************************/
> char *overload(std::ostream &out, char *p) {
> return (char*)((unsigned)p << (unsigned)&out);
> }
> cout << overload(cout, "cheater");
> /*****************************************************/
> From now on, though, you should probably do at least some of
> your homework yourself. I won't always have enough time to
> help you.
|
|
From: Per W. <pw...@ia...> - 2005-03-01 17:54:09
|
You shouldn't rename a library file to lobj.a. The line -lobjc means that the linker is requested to use a file libobjc.a in the current library search path. If libobjc.a isn't in the path, you should either add the path, or change the options to look like: -L<path_to_libfile> -lobjc which will add one more directory where the linker will look. /Per W On Sat, 26 Feb 2005, Alfred P. Reaud wrote: > Sometimes you have to forcibly put the library line in the Build Options-->Parameters-->Linker window in the form of: ../Dev-Cpp/lib/libfltk.a or whatever your path is. First try copying it to c:/dev-cpp/lib with it's original name, and if that doesn't work, then use the above form to force Dev-Cpp to link it. > > SlackRat <ab...@to...> wrote: <snip> > The programme compiles fine but the linker advises: > > " cannot find -lobjc " and ld exits with status 1 > > I have a copy of libobjc.a in cygwin/lib/mingw and copied it to > c:/dev-cpp/lib/gcc/mingw32/3.4.2 as lobjc.a > but this is not working > > Any help would be greatly appreciated > <snip> > > Alfred P. Reaud |
|
From: Per W. <pw...@ia...> - 2005-03-01 17:51:14
|
I'm surprised (not!) that you managed to complain without mentioning _what_ you are complaining about... What is "less well"? /Per W On Mon, 28 Feb 2005, gpuime wrote: > Hello all, > I'm surprised that the graphics library Winbgim works less well with > Dev-C++ 4.9.9.2 than with version 4.9.9.0 ! > Puime |
|
From: Per W. <pw...@ia...> - 2005-03-01 17:35:15
|
A const variable is a variable that may not be changed. A static variable is (if in function) a variable that keeps it's value between multiple calls or (if outside any function) a variable whose name isn't exported to the linker, i.e. not accessible from any other source file. It is perfectly ok to have multiple definitions for a static function as long as they are in separate source files. Since a static function may only be referenced from the same source file, there are no problems with multiple functions having the same signature. /Per W > "static" for a function means the same thing as "const" for a > variable. If you declare a function static, the compiler won't > let you give separate definitions for the function in > different source files. |
|
From: Per W. <pw...@ia...> - 2005-03-01 17:28:53
|
You have mixed up different uses of the static keyword. A static function is a function that is local to a source file, i.e. the name of the function isn't exported to the linker for reference from another source file. This allows multiple source files to implement different functions that all make use of the same name without any name collision. A static variable, declared outside of any function, is a variable that isn't exported to the linker, similar to a static function. Your quote is about static variables declared inside a function, in which case the variable keeps it's value between multiple calls of the function. /Per W On Fri, 25 Feb 2005, Alfred P. Reaud wrote: > >From C/C++ Reference > "The static data type modifier is used to create permanent storage for > variables. Static variables keep their value between function calls. > When used in a class, all instantiations of that class share one copy of > the variable." > > Farzan Hajian <far...@ho...> wrote: > > What is a static function? For example what is the difference > > between the following function and its non-static version?? |
|
From: SlackRat <ab...@to...> - 2005-03-01 14:01:23
|
Does anyone on the list use Ocelot? I would be interested in any pros and/or cons there might be when using = this SQL product. Thanks in advance -- Slackrat |
|
From: Scott B. <doo...@ya...> - 2005-03-01 04:45:16
|
I am trying to compile a gtkmm project but when I do I get the following errors:
1) A popup button appears with the message "Could not create executable output directory : "bin", please check your setting"
2) I get this Compile log message:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\MyFiles\GTKMMPrograms\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\MyFiles\GTKMMPrograms\Makefile.win" all
g++.exe -c main.cpp -o obj/main.o -I"C:/Dev-Cpp/include/gtk-2.0" -I"lib/gcc-lib/mingw32/3.3.1/include" -I"include/c++/3.3.1/mingw32" -I"include/c++/3.3.1" -I"lib/gcc/mingw32/3.4.2/include" -I"include/c++/3.4.2/backward" -I"include/c++/3.4.2/mingw32" -I"include/c++/3.4.2" -I"include" `pkg-config --cflags gtkmm-2.4` -IC:/Dev-Cpp/include/gtkmm-2.4 -IC:/Dev-Cpp/lib/gtkmm-2.4/include -IC:/Dev-Cpp/include/glibmm-2.4 -IC:/Dev-Cpp/lib/glibmm-2.4/include -IC:/Dev-Cpp/include/gdkmm-2.4 -IC:/Dev-Cpp/lib/gdkmm-2.4/include -IC:/Dev-Cpp/include/pangomm-1.4 -IC:/Dev-Cpp/include/atkmm-1.6 -IC:/Dev-Cpp/include/gtk-2.0 -IC:/Dev-Cpp/include/sigc++-2.0 -IC:/Dev-Cpp/lib/sigc++-2.0/include -IC:/Dev-Cpp/include/glib-2.0 -IC:/Dev-Cpp/lib/glib-2.0/include -IC:/Dev-Cpp/lib/gtk-2.0/include -IC:/Dev-Cpp/include/pango-1.0 -IC:/Dev-Cpp/include/atk-1.0 -fexpensive-optimizations -O3
In file included from C:/Dev-Cpp/include/glibmm-2.4/glibmm.h:59,
from C:/Dev-Cpp/include/gtkmm-2.4/gtkmm/main.h:6,
from main.cpp:1:
C:/Dev-Cpp/include/glibmm-2.4/glibmm/spawn.h:39: error: `GPid' does not name a type
C:/Dev-Cpp/include/glibmm-2.4/glibmm/spawn.h:144: error: `Pid' has not been declared
C:/Dev-Cpp/include/glibmm-2.4/glibmm/spawn.h:147: error: ISO C++ forbids declaration of `child_pid' with no type
C:/Dev-Cpp/include/glibmm-2.4/glibmm/spawn.h:153: error: `Pid' has not been declared
C:/Dev-Cpp/include/glibmm-2.4/glibmm/spawn.h:156: error: ISO C++ forbids declaration of `child_pid' with no type
C:/Dev-Cpp/include/glibmm-2.4/glibmm/spawn.h:163: error: `Pid' has not been declared
C:/Dev-Cpp/include/glibmm-2.4/glibmm/spawn.h:163: error: ISO C++ forbids declaration of `child_pid' with no type
C:/Dev-Cpp/include/glibmm-2.4/glibmm/spawn.h:169: error: `Pid' has not been declared
C:/Dev-Cpp/include/glibmm-2.4/glibmm/spawn.h:169: error: ISO C++ forbids declaration of `child_pid' with no type
C:/Dev-Cpp/include/glibmm-2.4/glibmm/spawn.h:195: error: variable or field `spawn_close_pid' declared void
C:/Dev-Cpp/include/glibmm-2.4/glibmm/spawn.h:195: error: `Pid' was not declared in this scope
In file included from C:/Dev-Cpp/include/gtkmm-2.4/gtkmm/widget.h:38,
from C:/Dev-Cpp/include/gtkmm-2.4/gtkmm/container.h:28,
from C:/Dev-Cpp/include/gtkmm-2.4/gtkmm/bin.h:29,
from C:/Dev-Cpp/include/gtkmm-2.4/gtkmm/button.h:29,
from MainForm.h:4,
from main.cpp:2:
C:/Dev-Cpp/include/gdkmm-2.4/gdkmm/display.h:424: error: ISO C++ forbids declaration of `GdkDisplayPointerHooks' with no type
C:/Dev-Cpp/include/gdkmm-2.4/gdkmm/display.h:424: error: expected `;' before '*' token
C:/Dev-Cpp/include/gdkmm-2.4/gdkmm/display.h:425: error: ISO C++ forbids declaration of `GdkDisplayPointerHooks' with no type
C:/Dev-Cpp/include/gdkmm-2.4/gdkmm/display.h:425: error: expected `;' before '*' token
make.exe: *** [obj/main.o] Error 1
Execution terminated
Does anybody know how to fix this, please ?
Scott
---------------------------------
Find local movie times and trailers on Yahoo! Movies.
|
|
From: Scott B. <doo...@ya...> - 2005-03-01 00:58:21
|
I fixed the GTK problem. I had been compiling the files as C++ files instead of as C files. --------------------------------- Find local movie times and trailers on Yahoo! Movies. |