dev-cpp-users Mailing List for Dev-C++
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
(17) |
2
(19) |
|
3
(17) |
4
(22) |
5
(23) |
6
(15) |
7
(4) |
8
(5) |
9
(3) |
|
10
(6) |
11
(19) |
12
(19) |
13
(6) |
14
(9) |
15
(10) |
16
(19) |
|
17
(32) |
18
(13) |
19
(18) |
20
(8) |
21
(5) |
22
(15) |
23
(8) |
|
24
(3) |
25
(4) |
26
(17) |
27
(11) |
28
(7) |
29
(4) |
30
(3) |
|
31
(3) |
|
|
|
|
|
|
|
From: David M. <ci...@ya...> - 2003-08-31 19:02:48
|
I will make one assumption. There is no cgmstring.cpp which
contains all the
function definitions (the actual code for the functions).
If this is the
case then that is the problem. Youy have to put all the
functions in this
form into the .cpp file.
void String::some_function(void)
{
.....
}
You can only leave inline functions in the header
(including those in the
class definition)
Hope this helps.
David McKen
----- Original Message -----
From: "Carlos García del Monte" <ten...@ne...>
To: "Dev-C++ mail list"
<dev...@li...>
Sent: Sunday, August 31, 2003 1:25 PM
Subject: [Dev-C++] Problem with header, skipping lines?, or
what???
> I'm just making a project, there I have two sources and
one header,
> which is includedin both source files.
>
> The header is
> #ifndef CGMSTRING_H
> #define CGMSTRING_H
>
> #include <string>
>
> using std::string;
>
> class String : public string{
> etc
> #endif
>
> Then the two source files including cgmstring.h. One have
the main
> function and the other is the implementation of a class,
which has its
> header.
> The problem is that either compiling trhough a makefile
or thropugh
> building a project with Dev, the header is included for
both sources in
> their object files, so when it's the time for the linker
it says all the
> functions of cgmstring.h (three constructors, one for
c_str() and
> another vc_str()) are declared twice: in main.o and in
class.o. But if I
> say, when compiling to .o in either one of the sources,
-D CGMSTRING_H,
> then the compiler reports that String has not been
declared!.
> It's the first time I find this, always before it worked
fine, why
> happens this now, what can be the problem?
>
>
>
> -------------------------------------------------------
> 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://www23.brinkster.com/noicys/devcpp/ub.htm
>
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
|
|
From: <ten...@ne...> - 2003-08-31 17:27:53
|
I'm just making a project, there I have two sources and one header,
which is includedin both source files.
The header is
#ifndef CGMSTRING_H
#define CGMSTRING_H
#include <string>
using std::string;
class String : public string{
etc
#endif
Then the two source files including cgmstring.h. One have the main
function and the other is the implementation of a class, which has its
header.
The problem is that either compiling trhough a makefile or thropugh
building a project with Dev, the header is included for both sources in
their object files, so when it's the time for the linker it says all the
functions of cgmstring.h (three constructors, one for c_str() and
another vc_str()) are declared twice: in main.o and in class.o. But if I
say, when compiling to .o in either one of the sources, -D CGMSTRING_H,
then the compiler reports that String has not been declared!.
It's the first time I find this, always before it worked fine, why
happens this now, what can be the problem?
|
|
From: Hossein H. <ult...@em...> - 2003-08-31 12:38:58
|
Dear Mohammed,
> Sorry to say this, but the problem is not with the
> header, but with your program : such a syntax doesn't
> comply with ansi c++ anymore.
> I'm not a c++ guru, but I think you should write
> something like :
>
> #include <fstream>
> using namespace std;
> int main()
> {}
>
> Simply removing the ".h" from the #include works.
Anthony is completely right. According to the Standard, the C++
implementations are free to choose for the extensions of the
Standard headers. In this case, MingW, legitimately has chosen the
header not to have any extension at all. Therefore, it will
complain for not finding such a file in the include directories.
Furthermore, AFAIK, the way you coded is not Standard-compling.
It may compile under some compilers, but it is not portable by
sure.
(Excuse me if it is a bit late, I hadn't checked my email for the
couple of days before.)
Regards,
--Hossein
> By the way, I'm new to the list, so Hi! Everyone...
Hi Anthony,
Welcome man!
Have fun, and enjoy!
--Hossein
--
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
|
|
From: xRxIxPx <xr...@gm...> - 2003-08-30 16:10:44
|
At 17:48 08/30/03 +0200, Anthony Portier wrote: >Hi everyone! > >Is the actual wxWindows DevPak broken? I would guess >it doesn't work with MinGW/GCC3.2 ? > >I installed the DevPak. I corrected the >wxWindows.template, changing "Compiler" options to >"CppCompiler". But this doesn't work anyway, >complaining about ugly, old C++ style stuff... Maybe they will fix this in the next release. Until now, you can use the -Wnodeprecated option (defines a macro that will disable this warning). But do not ask me, whether it will be compatible with the new std headers. |
|
From: <san...@ya...> - 2003-08-30 15:48:28
|
Hi everyone! Is the actual wxWindows DevPak broken? I would guess it doesn't work with MinGW/GCC3.2 ? I installed the DevPak. I corrected the wxWindows.template, changing "Compiler" options to "CppCompiler". But this doesn't work anyway, complaining about ugly, old C++ style stuff... Bye! Sandy/Moonlight ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com |
|
From: Jirka P. <gp...@ce...> - 2003-08-30 13:27:47
|
Hello When I comli my DLL project it sazs that export definition file not found, how do I make on and How to say to the linker where that file is? Thank You George |
|
From: <san...@ya...> - 2003-08-29 22:52:15
|
Hi Paolo!
I'm certainly not the best here to help, but I can at
least try to steer you in the right direction...
* The makefile is automaticly generated by Dev-C++, so
you don't have to worry about it. You will indirectly
select what will be in the makefile through 1/ the
files you create/add in your project 2/ the project
options.
* In fact, the problem is (IMO) that the linker
doesn't know where to find the libraries it needs.
Before we come back to the compilation / linkage, some
remarks :
* First point, Qt applications simply won't compile
under Dev-C++ (using MinGW/GCC as compiler). I'd love
to, but this won't work, no luck.
* I've never used FLTK, but it's available as a DevPak
downloadable through vUpdate, so I guess it's ok.
* SDL works great with Dev-C++.
* If you have downloaded FLTK and SDL as DevPaks and
have installed them, most of the work is already done.
Now, let's say you have downloaded and installed the
SDL DevPack, and you're trying to build a SDL prog :
* You should perhaps try first to use the templates
provided. For example, select File->New->Project...,
then select a template : SDL or SDL&GL. Try to build
(Execute->Compile, or Ctrl+F9), and see if it compile
ok.
* Then, try the same, but copy and paste your source
instead of the default source, and see if it's still
compiling ok.
To speak more generally (i.e. for a library which
didn't necessarily come as a DevPak)... There are four
steps to build a project. Once again we take SDL as
example, but this works with all librairies the same
way(just be sure it has been compiled for MinGW!!) :
* Create a new project, using the "Empty" template :
File->New->Project, then select the "Empty Project"
template. Click the "C Project" radio button if your
project is in plain C, "C++ Project" otherwise. Write
its name in the "Name" textfield, then "Ok". Select
the directory where you want to save the project .dev
file (usually where your sources are), then "Save".
* Add your file(s) to the project :
Project->Add to Project, select all the files in the
file dialog, then "Open". Do this as many times as
needed if you have several files in several
directories.
* Tell Dev-C++ where the include files for SDL are :
Project->Project Options->Directories->Include
directories. Use the "..." button to browse to the
right directory, click the directory, then "Ok". Click
the "Add" button, then "Ok".
* Tell Dev-C++ which libraries to link with - this
also tell Dev-C++ where they are :
Project->Project Options->Parameters. In the "linker"
textbox, enter (without quotes) '-lmingw32'. This is
to tell Dev-C++ to use its win32 library (SDL relies
on it).
Click the "Add Library or Object" button, and browse
to the directory where the SDL libraries are. Select
them, then "Open". In the "linker" textbox, ensure
that libSDLmain.a is listed before libSDL.a. Then
"Ok".
Then, finally, in the "linker" textbox, enter
'-lopengl32' and '-glu32' to tell Dev-C++ to use its
default OpenGL library, if your source uses OpenGL.
Now your project *should* be ready to compile and
link!
Another way would be tell Dev-C++ where the SDL
libraries are (Project->Project
Options->Directories->Library directories, browse the
right directory and add it), then to enter all
libraries in the linker this way : '-lmingw32
-lSDLmain -lSDL -opengl32 -lglu32'.
Speaking even more generally : Dev-C++ will
automaticly know where to find all the libraries
bundled with Dev-C++, so you just have to add them
this way : for libopengl32.a, write '-lopengl32'
("-l", forget the "lib", forget the ".a"). For
libraries you have installed elsewhere, you have
either to add them will full name and pathname, or add
their directory in the library directories, and then
their name as above.
That's it. I hope all this will be of some use for
you. And please forgive me if I've misunderstood your
question...
Bye! Sandy/Moonlight
--- Paolo Brasolin <pbr...@ya...> a écrit :
> Hi.
> I'm new to the list. I'm italian and my name is
> Paolo
> Brasolin.
> I've got a question. I tried to compile sources that
> uses FLTK, SDL or QT with dev-cpp but the linker
> told
> me that there were a LOT of errors caused by
> undefined
> references to the components of the libraries (for
> example, "[Linker error] undefined reference to
> 'Fl_Widget::~Fl_Widget()'" ). I put the includes in
> the right directory, but I think that the problem
> lies
> in the fact that I absolutely ignore how to use
> makefiles (I found some in each of the libraries
> packages). Would someone please help me?
>
> Thanks a lot.
>
> Paolo
>
>
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
|
|
From: Tony M. <to...@br...> - 2003-08-29 22:20:02
|
r c |
|
From: <pbr...@ya...> - 2003-08-29 19:37:44
|
Hi. I'm new to the list. I'm italian and my name is Paolo Brasolin. I've got a question. I tried to compile sources that uses FLTK, SDL or QT with dev-cpp but the linker told me that there were a LOT of errors caused by undefined references to the components of the libraries (for example, "[Linker error] undefined reference to 'Fl_Widget::~Fl_Widget()'" ). I put the includes in the right directory, but I think that the problem lies in the fact that I absolutely ignore how to use makefiles (I found some in each of the libraries packages). Would someone please help me? Thanks a lot. Paolo ______________________________________________________________________ Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il filtro Anti-spam http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/ |
|
From: leb123 <le...@wa...> - 2003-08-29 16:49:34
|
I have to create dynamically a menu from a file. From the win32
documentation and several web sites, I tried the following code, based
on InsertMenuItem. This function returns a nonzero value=3DOK, but no =
menu
is displayed. If I try a static menu with LoadMenu and SetMenu, instead
of this code, the menu is displayed correctly (but is static).
=20
What=92s wrong with this code ?=20
=20
=20
HMENU hMyMenu=3DCreateMenu();
if (!hMyMenu)
{
MessageBox(NULL, "Unable to create Menu", "Internal error", 0);
return FALSE;
}
DWORD IDCurrentItem=3D1;
int iPosition=3D0;
while (<not end of file>) //it loops several times
{
char szBuffer[BUFFER_SIZE] ;
=20
<read szBuffer from file> // the buffer content is OK
=20
MENUITEMINFO NMI;
ZeroMemory(&NMI, sizeof NMI);
NMI.cbSize=3Dsizeof NMI;
NMI.fMask=3DMIIM_STATE||MIIM_ID||MIIM_TYPE;
NMI.fType=3DMFT_STRING;
NMI.fState=3DMFS_ENABLED;
NMI.wID=3DIDCurrentItem++;
NMI.dwTypeData=3D(LPTSTR)szBuffer;
NMI.cch=3Dstrlen(szBuffer);
if (!InsertMenuItem(hMyMenu, iPosition++, TRUE, &NMI))
{
MessageBox(NULL, szBuffer, "Internal Error: unable to create
menu item=94, 0);
return FALSE;
}
}
=20
SetMenu(hwnd, hMyMenu); // no menu displayed !!
return TRUE;
|
|
From: Ioannis V. <iv...@em...> - 2003-08-28 21:57:36
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Mohamed Iqbal > Sent: Friday, August 29, 2003 12:26 AM > To: Dev-Cpp-Users > Subject: Re: [Dev-C++] Bug in dev-c++ header files > > > Sorry for posting this. In fact, I know that DEV-C++ is just > and IDE (I > guess more than this) to the MingW compiler. I know also that > the header > files come with the compiler. This is a typo I made because I > was hurry and > tired. > > All my applications are written in Standard C++. I don't use the old C > header files unless it is needed. > > The problem arises from a simple application I wrote ten > years ago using > Borland C++. I tried to compile it using more than one > compiler and all > produced no error and no warning. But on Dev-C++ I received > an error message > from the compiler. So as expected, non standard compliant code can't be considered portable. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
|
From: P.D. v. Z. <pa...@my...> - 2003-08-28 21:48:52
|
Then you could interpret this in two ways.... 1) MingW or GCC has a bug in one of its header files 2) All the other compilers accept non-standard code, where GCC is pretty strict about this. And I'm pretty sure it's the second... fstream.h is non-standard, no matter how you look at it. If you could tell us what error you get, it'd help things along a lot. A full compile log would be even better (all of the text you see in the "Compile Log" tab). I think it's this 'error' (warning) you get: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. And this warning in itself indicates exactly what the problem is. Paul -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Mohamed Iqbal Sent: Thursday, August 28, 2003 11:26 PM To: Dev-Cpp-Users Subject: Re: [Dev-C++] Bug in dev-c++ header files Sorry for posting this. In fact, I know that DEV-C++ is just and IDE (I guess more than this) to the MingW compiler. I know also that the header files come with the compiler. This is a typo I made because I was hurry and tired. All my applications are written in Standard C++. I don't use the old C header files unless it is needed. The problem arises from a simple application I wrote ten years ago using Borland C++. I tried to compile it using more than one compiler and all produced no error and no warning. But on Dev-C++ I received an error message from the compiler. Mohammed ------------------------------------------------------- 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://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Mohamed I. <ia...@jo...> - 2003-08-28 21:28:06
|
Sorry for posting this. In fact, I know that DEV-C++ is just and IDE (I guess more than this) to the MingW compiler. I know also that the header files come with the compiler. This is a typo I made because I was hurry and tired. All my applications are written in Standard C++. I don't use the old C header files unless it is needed. The problem arises from a simple application I wrote ten years ago using Borland C++. I tried to compile it using more than one compiler and all produced no error and no warning. But on Dev-C++ I received an error message from the compiler. Mohammed |
|
From: Oliver B. <the...@gm...> - 2003-08-28 17:45:20
|
Hi all,
this is the first time I post to this list so bare with me :-)
I got the following problem:
my setup for gtk+/gtmmm and Dev-C++ 4.9.8.0 for windows2000
-----------------------------------
- installed Dev-C++ in c:\dev-cpp
- installed GTK-Runtime-Environment-2.2.1.2.exe and added path to my enviroment variables
- installed GTK-Development-Environment-2.2.1.2.exe, directly into c:\dev-cpp
(not in c:\dev-cpp\gtk ! Will not work!)
- install gtkmm-runtime-2.2.7.1.exe and added path to my enviroment variables
- install gtkmm-2.2.7.1.exe in cd:\dev-cpp, directly into c:\dev-cpp
(not in c:\dev-cpp\gtkmm ! Will not work!)
- Add to my environment variables: PKG_CONFIG_PATH with
value C:\dev-cpp\gtkmm\lib\pkgconfig
- Reboot :-)
- Open an empty project in Dev-C++ -> New Project -> Basic - Empty Project
- Enter "pkg-config --libs --cflags gtkmm-2.0" on my commandshell in
c:\dev-cpp\bin and saved the output in a editor. (e.g. notepad)
- Take that output and paste the following:
-IC:/Dev-Cpp/gtkmm/include/gtkmm-2.0 -IC:/Dev-Cpp/gtkmm/lib/gtkmm-2.0/include
-IC:/Dev-Cpp/gtkmm/lib/sigc++-1.2/include -IC:/Dev-Cpp/gtkmm/include/sigc++-1.2
-IC:/Dev-Cpp/include/gtk-2.0 -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
-LC:/Dev-Cpp/gtkmm/lib -LC:/Dev-Cpp/lib
into my currently empty project under project -> project options -> parameters -> C++ - Compiler
and paste this one:
-lgtkmm-2.0 -lgdkmm-2.0 -latkmm-1.0 -lgtk-win32-2.0 -lpangomm-1.0 -lglibmm-2.0
-lsigc-1.2 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv
into: project -> project options -> parameters -> Linker
- Save all the stuff with the "ok"-button and leave the project options
- Now, I add a new file to my project and paste the following code into
a new sourcefile:
#include <gtkmm.h>
int main(int argc, char *argv[])
{
Gtk::Main kit(argc, argv);
Gtk::Window window;
Gtk::Main::run(window);
return 0;
}
- Saved this.
- Now, I compiled and executed the whole stuff and then this one´s happen :-(
"Fatal F:\gtkmm\Fatal 'all-before' does not exist - don't know how to make it"
Here is the makefile dev-c++ created:
# Project: Projekt1
# Makefile created by Dev-C++ 4.9.8.0
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = test.o $(RES)
LINKOBJ = test.o $(RES)
LIBS = -L"F:/dev-cpp/lib" -lgtkmm-2.0 -lgdkmm-2.0 -latkmm-1.0 -lgtk-win32-2.0 -lpangomm-1.0 -lglibmm-2.0 -
lsigc-1.2 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -
lgmodule-2.0 -lglib-2.0 -lintl -liconv
INCS = -I"F:/dev-cpp/include"
CXXINCS = -I"F:/dev-cpp/include/c++" -I"F:/dev-cpp/include/c++/mingw32" -I"F:/dev-
cpp/include/c++/backward" -I"F:/dev-cpp/include"
BIN = Projekt1.exe
CXXFLAGS = $(CXXINCS)-IC:/Dev-Cpp/include/gtkmm-2.0 -IC:/Dev-Cpp/lib/gtkmm-2.0/include -IC:/Dev-
Cpp/include/gtk-2.0 -IC:/Dev-Cpp/lib/sigc++-1.2/include -IC:/Dev-Cpp/include/sigc++-1.2 -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 -LC:/Dev-Cpp/lib
CFLAGS = $(INCS)
.PHONY: all all-before all-after clean clean-custom
all: all-before Projekt1.exe all-after
clean: clean-custom
rm -f $(OBJ) $(BIN)
$(BIN): $(LINKOBJ)
$(CPP) $(LINKOBJ) -o "Projekt1.exe" $(LIBS)
test.o: test.cpp
$(CPP) -c test.cpp -o test.o $(CXXFLAGS)
I don´t know what I´m doing wrong because on another computer it works ? !
Would be very glad if I could get some help :-)))
Regards Olli
--
my icq:172670232
Suche CD's von Dixie Dregs, Baden Powell, Steve Morse,
Eric Johnson, Kenny Burell, Charles-Valentin Alkan
The Unchallenged - "Sceneries" CD is out now !!! ... thrash-
metal in the style of Death/Slayer/Cynic/old Kreator ... order
your copy from: pow...@we... ...10 Euro or 10 $ (+postage)
... visit us/hear some mp3's: http://www.mp3.com/the_unchallenged
or http://www.mp3.de/the_unchallenged ... we're looking for gigs
in 2003 ... http://www.the-unchallenged.de ... Metal - Fanzines
get in contact !!!
|
|
From:
<ten...@ne...> - 2003-08-28 16:26:24
|
Dev-Cpp 4.9.8.x, if I'm not wrong uses MinGW 2.0.0, based on GCC 3.0
(I'm not sure because I have the editor and the compiler downloaded
separately). In it fstream.h and any c++ header with extension is
considered obsolete, so it is in ./include/c++/3.2/backward; which is a
directory which seems to not be in the default search path, so you have
to add it with the -I compiler option and, if you don't pass the
-Wnodeprecated option it will warn about the use of a deprecated header.
You should use the headers without extension, but don't forget they use
namespaces, so you'll have to either add the line using namespace std;
before your code (which breaks the object of namespace), or various
lines saying using std::whatever in that namespace you use, e.g.,
std::cout, std::endl, etc so you can type simply cout or endl, etc, or
you'll have to qualify all those standard functions and variables and
classes with the std:: prefix, saying std::cout <<, std::cin >>,
std::endl, etc.
Mohamed Iqbal wrote:
>Hi...
>
>Try to compile the following code using Dev-C++ 4.9.8.0.
>
>#include <fstream.h>
>int main()
>{}
>
>You will receive error!!!!!
>
>Mohammed
>
>
>
>
>-------------------------------------------------------
>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://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
|
|
From: <or...@vp...> - 2003-08-28 00:31:22
|
medium wrote: > Hy All ! > > I'm a new user. I'm a hungarian. Nice to meet you ! Üdv :) -- Balázs |
|
From: w.y. <yok...@ve...> - 2003-08-28 00:16:04
|
Ioannis Vranos wrote: > > Is he sure that getch() is defined inside a C standard header file? Or > main() can be of type void? getch() is in <conio.h> which is nonstandard. Or he can use getchar() or any number of other ways to get the same effect. (at least he didn't ask how to keep the console window from disappearing :) |
|
From: Ioannis V. <iv...@em...> - 2003-08-27 22:20:45
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Anthony Portier > Sent: Thursday, August 28, 2003 12:40 AM > To: dev...@li... > Subject: Re: [Dev-C++] RC_INVOKED guard > > > Strange... > > I tried your example, and it did compile with no > problem (except a warning, due to main not returning > an int - main is supposed to return an int > nowadays...). > > Are you sure you created an empty project with C as > language? > Are you sure you are using the latest version of > Dev-C++ / Mingw32 ? Is he sure that getch() is defined inside a C standard header file? Or main() can be of type void? Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
|
From: <san...@ya...> - 2003-08-27 21:40:31
|
Strange...
I tried your example, and it did compile with no
problem (except a warning, due to main not returning
an int - main is supposed to return an int
nowadays...).
Are you sure you created an empty project with C as
language?
Are you sure you are using the latest version of
Dev-C++ / Mingw32 ?
Sandy/Moonlight
--- Ricardo Artur Staroski <sta...@in...> a
écrit :
---------------------------------
Hi, I'm having trouble when building a C source.
I wrote a simpleHelloWorld:
----------------------------------------
#include<stdlib.h>
#include <stdio.h>
void main(){
printf("HelloWorld");
getch();
}
----------------------------------------
but when Itry to build it the editor opens the file
"C:\mingw\include\stddef.h"
andstops, this is the content of thefile:
----------------------------------------
/*
* This isjust an RC_INVOKED guard for the real
stddef.h
* fixincluded in gccsystem dir. One day we will
delete this file.
*/
#ifndefRC_INVOKED
#include<stddef.h>
#endif
----------------------------------------
Howcan I fix this?
Thank you very much for yourattention...
Ricardo Artur Staroski.
PS: Forgive for my english,It isn´t my native
language...
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
|
|
From: Ricardo A. S. <sta...@in...> - 2003-08-27 21:15:37
|
Hi, I'm having trouble when building a C source.<BR>I wrote a simple
HelloWorld:<BR>----------------------------------------<BR>#include
<stdlib.h><BR>#include <stdio.h><BR><BR>void main()
{<BR> printf("HelloWorld");<BR>
getch();<BR>}<BR>----------------------------------------<BR><BR>but when I
try to build it the editor opens the file "C:\mingw\include\stddef.h"<BR>and
stops, this is the content of the
file:<BR>----------------------------------------<BR>/*<BR> * This is
just an RC_INVOKED guard for the real stddef.h<BR> * fixincluded in gcc
system dir. One day we will delete this file.<BR> */<BR>#ifndef
RC_INVOKED<BR>#include
<stddef.h><BR>#endif<BR>----------------------------------------<BR><BR>How
can I fix this?<BR><BR>Thank you very much for your
attention...<BR><BR>Ricardo Artur Staroski.<BR>PS: Forgive for my english,
It isn´t my native language...<BR />
<BR />
___________________________________________________________<BR />
Mensagem Enviada pelo Webmail FURB - http://webmail.furb.br<BR />
|
|
From: <PSu...@ai...> - 2003-08-27 21:06:06
|
Hello, Does anybody have any skill level using OLEDB with C++ ? Regards Sorry for my bad English ;-( __________________ Pierre Surmont Tel : +687 25 03 77 Mob: +687 77 63 77 Fax : +687 25 03 92 |
|
From: <san...@ya...> - 2003-08-27 20:34:16
|
Hi!
I don't want to say anything stupid, for I'm new to
the list, but, if I'm not mistaken :
* when you will compile (button with four color
squares / Ctrl+F9), Dev-C++ will expect your project
to have one and only one "main" function. If you have
created a console based project, the .cpp file created
at the same time as the project already has one.
* so, if your multiple .cpp files correspond to
multiple programs (each .cpp file has a "main"
function), you must create a different project for
each .cpp file (one project per file). You will
compile each project separately, hence execute each
.cpp file separately.
* if these multiple .cpp files only hold functions,
you must :
- call these functions within your "main" function ;
- precise to Dev-C++ where these functions can be
found.
A simple way (though not the best one) to do this is
to use the "extern" directive. This could look like
this (we have 3 files, named main.cpp, test1.cpp and
test2.cpp) :
main.cpp
========
#include <iostream>
#include <stdlib.h>
extern void test1(void);
extern void test2(void);
using namespace std;
int main(int argc, char *argv[])
{
test1();
test2();
system("PAUSE");
return 0;
}
test1.cpp
=========
#include <iostream>
using namespace std;
void test1(void)
{
cout << "Test1" << endl;
}
test2.cpp
=========
#include <iostream>
using namespace std;
void test2(void)
{
cout << "Test2" << endl;
}
A better way to do, would be to declare each function
within a header file (test.h, or test.hpp).
I hope I've answered your question. If you want me to
be more precise, just ask. Now, if I've misinterpreted
your question, please forgive me!
Bye! Sandy/Moonlight
--- "Nadesan, Binu" <bna...@ci...> a écrit :
> Hi All,
>
> I have created a console based project using the
> Dev-C++ IDE. The project
> contains multiple
> .cpp files. Each of these files are small sample
> .cpp files. Now how do I
> execute one of the .cpp file.
>
>
> With Best Regards...
> Binu Nadesan
> bna...@ci... <mailto:bna...@ci...>
> Tel#: (513) 612-2206
>
>
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
|
|
From: <san...@ya...> - 2003-08-27 20:07:20
|
Hi!
Sorry to say this, but the problem is not with the
header, but with your program : such a syntax doesn't
comply with ansi c++ anymore.
I'm not a c++ guru, but I think you should write
something like :
#include <fstream>
using namespace std;
int main()
{}
Simply removing the ".h" from the #include works.
By the way, I'm new to the list, so Hi! Everyone...
Sandy/Moonlight
--- Mohamed Iqbal <ia...@jo...> a écrit :
> Hi...
>
> Try to compile the following code using Dev-C++
> 4.9.8.0.
>
> #include <fstream.h>
> int main()
> {}
>
> You will receive error!!!!!
>
> Mohammed
>
>
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
|
|
From: Michal M. <mol...@se...> - 2003-08-27 19:58:13
|
Mohamed Iqbal wrote:
> Hi...
>
> Try to compile the following code using Dev-C++ 4.9.8.0.
>
> #include <fstream.h>
> int main()
> {}
>
> You will receive error!!!!!
under 4.9.8.1 I don't see any error (only one warning)
|
|
From: Nadesan, B. <bna...@ci...> - 2003-08-27 19:29:23
|
Hi All, I have created a console based project using the Dev-C++ IDE. The project contains multiple .cpp files. Each of these files are small sample .cpp files. Now how do I execute one of the .cpp file. With Best Regards... Binu Nadesan bna...@ci... <mailto:bna...@ci...> Tel#: (513) 612-2206 |