dev-cpp-users Mailing List for Dev-C++ (Page 298)
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: <gui...@ya...> - 2003-10-31 11:03:58
|
Hi Per, yes in fact I was making a mistake with the linker, so I added "-lmySQL" and allso compiled the example, and this is what I get: ------------- Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Examples\MySQLClientTest\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Examples\MySQLClientTest\Makefile.win" all g++.exe -c MySQLClientTest.cpp -o MySQLClientTest.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" gcc.exe MySQLClientTest.o -o "MySQLClientTest.exe" -L"C:/Dev-Cpp/lib" -lmySQL MySQLClientTest.o(.eh_frame+0x11):MySQLClientTest.cpp: undefined reference to `__gxx_personality_v0' make.exe: *** [MySQLClientTest.exe] Error 1 Execution terminated ----------------- Could this be a problem caused by the warning in http://www.bloodshed.net/dev/devcpp.html? " /!\ WARNING /!\ : Due to changes in the C++ ABI in GCC 3.2, some of the available Dev-C++ Packages for the C++ language will not work. Please read this for more information. " --- Per Westermark <pw...@ia...> escribió: > Where did you inform DevC++ that you wanted to link your > application with > the mysql library? From the compiler output, you can see where > the linker > looks for libraries (-L"C:/Dev-Cpp/lib"). However, that is not > enough. You > also have to tell it which extra libraries you need, such as > -lmySQL. > > Did you try c:\Dev-Cpp\Examples\MySQLClientTest? > > /Per W > > On Wed, 29 Oct 2003, Guillermo Krepper wrote: > > > Hi, > > I´m just starting to do some tests with MySQL, downloaded > and > > installed the Dev Pack. When I compile a simple test > application I get > > this link error. > > Need some advise, thanks. > > > > ---------- > > Compiler: Default compiler > > Building Makefile: "D:\Dev\C++\sql\Makefile.win" > > Executing make... > > make.exe -f "D:\Dev\C++\sql\Makefile.win" all > > g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include/c++" > > -I"C:/Dev-Cpp/include/c++/mingw32" > -I"C:/Dev-Cpp/include/c++/backward" > > -I"C:/Dev-Cpp/include" > > g++.exe main.o -o "testSQL.exe" -L"C:/Dev-Cpp/lib" > > main.o(.text+0xfc):main.cpp: undefined reference to > `mysql_init@4' > > make.exe: *** [testSQL.exe] Error 1 > > Execution terminated > > ---------- > > > > > > > > > > > > ------------------------------------------------------- > > 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/ > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: > http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: 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/ > _______________________________________________ > 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 ___________________________________________________ Yahoo! Messenger - Nueva versión GRATIS Super Webcam, voz, caritas animadas, y más... http://messenger.yahoo.es |
|
From: Per W. <pw...@ia...> - 2003-10-31 08:38:47
|
Change to NT/2k/XP to get longer command lines. Check if you can move source and/or include files to get shorter paths. /Per W On Fri, 31 Oct 2003, Xavier WARIN(Compte LOCAL) - I23 wrote: > Hi , > > I try to use DevCpp to compile some code coming from Linux , and being > port with VC7. Everything fine except during the link. > It is said that my command line is too long while linking ? > Do you know if there is some option or workaround for this problem ? > Thank you. > > > > ------------------------------------------------------- > 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/ > _______________________________________________ > 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: Xavier WARIN(C. L. - I. <xav...@de...> - 2003-10-31 08:09:26
|
Hi , I try to use DevCpp to compile some code coming from Linux , and being port with VC7. Everything fine except during the link. It is said that my command line is too long while linking ? Do you know if there is some option or workaround for this problem ? Thank you. |
|
From: <co...@ps...> - 2003-10-31 07:29:14
|
----- Original Message ----- From: "Paul Surgeon" <su...@po...> To: <dev...@li...> Sent: Thursday, October 30, 2003 8:50 PM Subject: [Dev-C++] Version info > Is there anyway to include the version info (in the project options) into my > code at compile time? > > i.e. > I want my application's title bar to contain the major,minor and build > number. > Are there any special preprocessor directives that I can use? > You should include file <projectname>_private.h There are defined (#define) consts about major, minor and build number for example: #define VER_STRING "0.0.0.37" #define VER_MAJOR 0 #define VER_MINOR 0 #define VER_RELEASE 0 #define VER_BUILD 37 > It's a pain having to copy it every time I do a build and it's too easy to > forget > to update. > > Thanks > Paul Greetings Collins > > > > ------------------------------------------------------- > 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/ > _______________________________________________ > 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: mctimes <mc...@21...> - 2003-10-31 05:09:06
|
Hi all, The current release of devcpp is only support gcc 3.2. However, the newest version of gcc is 3.3.x. Accordingly to the documentation of gcc, some new features will only found on 3.3.x, I wonder why devcpp don't upgrade the compiler to the new version ???? |
|
From: Paul S. <su...@po...> - 2003-10-30 19:50:09
|
Is there anyway to include the version info (in the project options) into my code at compile time? i.e. I want my application's title bar to contain the major,minor and build number. Are there any special preprocessor directives that I can use? It's a pain having to copy it every time I do a build and it's too easy to forget to update. Thanks Paul |
|
From: Daniel G. <sp...@ho...> - 2003-10-30 15:31:18
|
I've not used directsound before, I am working on the Direct3D side of things (just learning the ropes a bit better). >From: "Marek" <sp...@we...> >To: "Daniel Glenfield" <sp...@ho...> >CC: dev...@li... >Subject: Re: [Dev-C++] Directx 9 - DirectSound problem >Date: Thu, 30 Oct 2003 16:13:46 +0100 > > >Hello, > > Thanks for response. > > I got it: > The third parameter was wrong, should be: > LPDIRECTSOUNDBUFFER lpDSBuffer; > > IDirectSound_CreateSoundBuffer( lpDS, &dsbd, &lpDSBuffer, NULL ); > > I still don't know what doesn't it compile without modyfing dsound.h and >mmsystem.h. do you have the same problem? > > Thanks, > Marek > > > > > I think I see a problem, > > > > IDirectSound_CreateSoundBuffer( &pdsbuffer, &dsbd, &pdsbuffer, NULL ); > > > > why is there an underscore therE? > > > > and secondly (important) you must get a pointer to an interface and then >use > > that pointer to access the interface functions. > > > > Try that and see if it helps. > > > > Daniel > > > > >From: "Marek" <sp...@we...> > > >To: dev...@li... > > >Subject: [Dev-C++] Directx 9 - DirectSound problem > > >Date: Wed, 29 Oct 2003 20:23:21 +0100 > > > > > > > > > Hello, > > > > > > I'm trying to play sound from a C program using DirectSound ( >Secondary > > >Buffer ) and I'm getting an error: > > >109 dxsound.c structure has no member named `CreateSoundBuffer' > > > > > > piece of code is: > > > > > >#include <windows.h> > > >#include <mmsystem.h> > > >#include <dsound.h> > > > > > >[...] > > > > > > IDirectSound pds; /* DirectSound object */ > > > IDirectSoundBuffer pdsbuffer; /* sound buffer */ > > > > > >/* initialization of DirectSound, CooperativeLevel etc. */ > > > /* create wave format description */ > > > memset( &pcmwf, 0, sizeof( WAVEFORMATEX ) ); > > >/* filling the values */ > > > /* create sound buffer description */ > > > memset( &dsbd, 0, sizeof( DSBUFFERDESC ) ); > > >/* filling the values */ > > > > > > IDirectSound_CreateSoundBuffer( &pdsbuffer, &dsbd, &pdsbuffer, NULL >); > > > > > >does anyone know the solution to this? I can send the entire unit if > > >needed. > > > > > > > > >Also when I tried to compile I was getting duplicate definition errors > > >between > > >dsound.h and mmsystem.h. > > > > > >The changes I had to make were: > > >in mmsystem.h > > >line 1008: > > >change > > >#ifndef _WAVEFORMATEX_ > > >#define _WAVEFORMATEX_ > > >to: > > >#ifndef _WAVEFORMATEX_ > > >#define _WAVEFORMATEX_ > > >#define _LPCWAVEFORMATEX_DEFINED > > > > > >in dsound.h > > >line 1899: > > >change: > > >typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX; > > >to: > > >//typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX; > > > > > >Am I missing something? > > > > > >Thanks in advance, > > >Marek > > > > > > > > > > > >------------------------------------------------------- > > >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/ > > >_______________________________________________ > > >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 > > > > _________________________________________________________________ > > Hotmail messages direct to your mobile phone >http://www.msn.co.uk/msnmobile > > > > _________________________________________________________________ Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband |
|
From: Marek <sp...@we...> - 2003-10-30 15:16:42
|
Hello, Thanks for response. I got it: The third parameter was wrong, should be: LPDIRECTSOUNDBUFFER lpDSBuffer; IDirectSound_CreateSoundBuffer( lpDS, &dsbd, &lpDSBuffer, NULL ); I still don't know what doesn't it compile without modyfing dsound.h and mmsystem.h. do you have the same problem? Thanks, Marek > I think I see a problem, > > IDirectSound_CreateSoundBuffer( &pdsbuffer, &dsbd, &pdsbuffer, NULL ); > > why is there an underscore therE? > > and secondly (important) you must get a pointer to an interface and then use > that pointer to access the interface functions. > > Try that and see if it helps. > > Daniel > > >From: "Marek" <sp...@we...> > >To: dev...@li... > >Subject: [Dev-C++] Directx 9 - DirectSound problem > >Date: Wed, 29 Oct 2003 20:23:21 +0100 > > > > > > Hello, > > > > I'm trying to play sound from a C program using DirectSound ( Secondary > >Buffer ) and I'm getting an error: > >109 dxsound.c structure has no member named `CreateSoundBuffer' > > > > piece of code is: > > > >#include <windows.h> > >#include <mmsystem.h> > >#include <dsound.h> > > > >[...] > > > > IDirectSound pds; /* DirectSound object */ > > IDirectSoundBuffer pdsbuffer; /* sound buffer */ > > > >/* initialization of DirectSound, CooperativeLevel etc. */ > > /* create wave format description */ > > memset( &pcmwf, 0, sizeof( WAVEFORMATEX ) ); > >/* filling the values */ > > /* create sound buffer description */ > > memset( &dsbd, 0, sizeof( DSBUFFERDESC ) ); > >/* filling the values */ > > > > IDirectSound_CreateSoundBuffer( &pdsbuffer, &dsbd, &pdsbuffer, NULL ); > > > >does anyone know the solution to this? I can send the entire unit if > >needed. > > > > > >Also when I tried to compile I was getting duplicate definition errors > >between > >dsound.h and mmsystem.h. > > > >The changes I had to make were: > >in mmsystem.h > >line 1008: > >change > >#ifndef _WAVEFORMATEX_ > >#define _WAVEFORMATEX_ > >to: > >#ifndef _WAVEFORMATEX_ > >#define _WAVEFORMATEX_ > >#define _LPCWAVEFORMATEX_DEFINED > > > >in dsound.h > >line 1899: > >change: > >typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX; > >to: > >//typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX; > > > >Am I missing something? > > > >Thanks in advance, > >Marek > > > > > > > >------------------------------------------------------- > >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/ > >_______________________________________________ > >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 > > _________________________________________________________________ > Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile |
|
From: Daniel G. <sp...@ho...> - 2003-10-30 10:19:08
|
I think I see a problem, IDirectSound_CreateSoundBuffer( &pdsbuffer, &dsbd, &pdsbuffer, NULL ); why is there an underscore therE? and secondly (important) you must get a pointer to an interface and then use that pointer to access the interface functions. Try that and see if it helps. Daniel >From: "Marek" <sp...@we...> >To: dev...@li... >Subject: [Dev-C++] Directx 9 - DirectSound problem >Date: Wed, 29 Oct 2003 20:23:21 +0100 > > > Hello, > > I'm trying to play sound from a C program using DirectSound ( Secondary >Buffer ) and I'm getting an error: >109 dxsound.c structure has no member named `CreateSoundBuffer' > > piece of code is: > >#include <windows.h> >#include <mmsystem.h> >#include <dsound.h> > >[...] > > IDirectSound pds; /* DirectSound object */ > IDirectSoundBuffer pdsbuffer; /* sound buffer */ > >/* initialization of DirectSound, CooperativeLevel etc. */ > /* create wave format description */ > memset( &pcmwf, 0, sizeof( WAVEFORMATEX ) ); >/* filling the values */ > /* create sound buffer description */ > memset( &dsbd, 0, sizeof( DSBUFFERDESC ) ); >/* filling the values */ > > IDirectSound_CreateSoundBuffer( &pdsbuffer, &dsbd, &pdsbuffer, NULL ); > >does anyone know the solution to this? I can send the entire unit if >needed. > > >Also when I tried to compile I was getting duplicate definition errors >between >dsound.h and mmsystem.h. > >The changes I had to make were: >in mmsystem.h >line 1008: >change >#ifndef _WAVEFORMATEX_ >#define _WAVEFORMATEX_ >to: >#ifndef _WAVEFORMATEX_ >#define _WAVEFORMATEX_ >#define _LPCWAVEFORMATEX_DEFINED > >in dsound.h >line 1899: >change: >typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX; >to: >//typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX; > >Am I missing something? > >Thanks in advance, >Marek > > > >------------------------------------------------------- >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/ >_______________________________________________ >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 _________________________________________________________________ Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile |
|
From: Reid T. <rei...@at...> - 2003-10-30 03:39:49
|
My opinion differs. I am only offering an alternative that may provide
alain the means
to get the end result he wants w less code modification. I imagine he
could as easily configure
Dev-C++ to use borlands compiler/libs/dlls. His choice. But,
I have no issue with my application utilizing the cygwin dll.
In my opinion, cygwin more than makes up for that by:
providing a posix/linux/unix env to work in
providing ~all the tools of a *nix environment
allowing me to run any Xwindows client i desire
providing me the ease to take most any *nix source code download &
untar it; type ./configure; type make; type make install and be
done w/o
having to re-write the code
providing me the ease of use to move code that I am working on from
*nix to
Win* and back.
etc, etc
how do you define native code?
The cygwin dll( c code compiled on windows to run on windows) is as
native as any of the mingw .dll/.a files. And they (the mingw files)
are 3rd party libs.
reid
P.D. van Zelst wrote:
> But your application will be dependent on the Cygwin DLLs, which can be a
> nuisance. I always prefer native code over emulation, especially when the
> emulation requires 3rd party libraries.
>
> ________________________________
>
> From: dev...@li...
> [mailto:dev...@li...] On Behalf Of Reid
> Thompson
> Sent: Wednesday, October 29, 2003 11:00 PM
> To: Alain Paschoud; dev...@li...
> Subject: RE: [Dev-C++] Get socket with socket function
>
>
> If you configure Dev-C++ to use cygwin as the build env you will not
> have to
> change your code.
>
>
>
> reid
>
> -----Original Message-----
> From: Alain Paschoud [mailto:ala...@ge...]
> Sent: Wednesday, October 29, 2003 3:16 PM
> To: dev...@li...
> Subject: [Dev-C++] Get socket with socket function
>
>
>
> Hi all,
>
>
> I managed to compile a simple program that should just wait
> for an
> icoming connection on a inet type socket. I did it under Mac OS X and
> Linux,
> and I want to do the same thing with dev-cpp.
>
>
> Due to explanation give on this mailing list (thanks for your
> quick
> and usefull answers), I change the code to use winsock.h instead of
> sys/socket.h. I added the necessary library and DLLs. The program starts
> correctly and get it the function to create the socket file descriptor
> (it
> is very simple) :
>
>
> int sockfd;
>
>
> sockfd = socket(AF_INET, SOCK_STREAM, 0);
>
>
> BUT the result of socket function is always -1 (sockfd = -1).
> What
> could be the cause of that ? I found a similar example of socket creation
> for windows, I did exactly the same as in the example. The only thing
> I have
> found in "socket" man page is :
>
>
> "A -1 is returned if an error occurs"
>
>
> But how can an error happen at this step ?
>
>
> Thank you for any advice.
>
>
> Best regards.
>
>
>
|
|
From: P.D. v. Z. <pa...@my...> - 2003-10-29 23:48:33
|
But your application will be dependent on the Cygwin DLLs, which can be a nuisance. I always prefer native code over emulation, especially when the emulation requires 3rd party libraries. ________________________________ From: dev...@li... [mailto:dev...@li...] On Behalf Of Reid Thompson Sent: Wednesday, October 29, 2003 11:00 PM To: Alain Paschoud; dev...@li... Subject: RE: [Dev-C++] Get socket with socket function If you configure Dev-C++ to use cygwin as the build env you will not have to change your code. reid -----Original Message----- From: Alain Paschoud [mailto:ala...@ge...] Sent: Wednesday, October 29, 2003 3:16 PM To: dev...@li... Subject: [Dev-C++] Get socket with socket function Hi all, I managed to compile a simple program that should just wait for an icoming connection on a inet type socket. I did it under Mac OS X and Linux, and I want to do the same thing with dev-cpp. Due to explanation give on this mailing list (thanks for your quick and usefull answers), I change the code to use winsock.h instead of sys/socket.h. I added the necessary library and DLLs. The program starts correctly and get it the function to create the socket file descriptor (it is very simple) : int sockfd; sockfd = socket(AF_INET, SOCK_STREAM, 0); BUT the result of socket function is always -1 (sockfd = -1). What could be the cause of that ? I found a similar example of socket creation for windows, I did exactly the same as in the example. The only thing I have found in "socket" man page is : "A -1 is returned if an error occurs" But how can an error happen at this step ? Thank you for any advice. Best regards. |
|
From: Per W. <pw...@ia...> - 2003-10-29 22:58:53
|
Where did you inform DevC++ that you wanted to link your application with the mysql library? From the compiler output, you can see where the linker looks for libraries (-L"C:/Dev-Cpp/lib"). However, that is not enough. You also have to tell it which extra libraries you need, such as -lmySQL. Did you try c:\Dev-Cpp\Examples\MySQLClientTest? /Per W On Wed, 29 Oct 2003, Guillermo Krepper wrote: > Hi, > =09I=B4m just starting to do some tests with MySQL, downloaded and > installed the Dev Pack. When I compile a simple test application I get > this link error. > Need some advise, thanks. > > ---------- > Compiler: Default compiler > Building Makefile: "D:\Dev\C++\sql\Makefile.win" > Executing make... > make.exe -f "D:\Dev\C++\sql\Makefile.win" all > g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include/c++" > -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" > -I"C:/Dev-Cpp/include" > g++.exe main.o -o "testSQL.exe" -L"C:/Dev-Cpp/lib" > main.o(.text+0xfc):main.cpp: undefined reference to `mysql_init@4' > make.exe: *** [testSQL.exe] Error 1 > Execution terminated > ---------- > > > > > > ------------------------------------------------------- > 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/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Per W. <pw...@ia...> - 2003-10-29 22:50:11
|
There are no Dev C++ Implemented Basic Library, since Dev C++ isn't a compiler but an IDE. Check out MinGW (the used compiler), gcc (which MinGW is based on) or Microsoft MSDN - since you are programming on the Windows platform. /Per W On Wed, 29 Oct 2003, Roger Chrispim wrote: > Dear fellows, > > I found nice documents on the page > "http://www.bloodshed.net/dev/devcpp.html", but I did not find a document > like a Dev C++ User Guide or Dev C++ Implemented Basic Library. > > Is there a good reference to use with Dev C++. > > Thanks for your help > > Roger > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.525 / Virus Database: 322 - Release Date: 9/10/2003 > > > > ------------------------------------------------------- > 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/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Per W. <pw...@ia...> - 2003-10-29 22:48:33
|
The main() is hidden inside windows libraries. Your application will start with WinMain() - or DllMain() in case of a DLL. /Per W On Wed, 29 Oct 2003, Roger Chrispim wrote: > Dear fellows, > > I runned the API examples WinTest and WinMenu that come with Dev C++ (folder > Dev-Cpp\Examples\) with absolute sucess. I could notice that there is no > main() start function in these programs. I would like to understand how can > a C/C++ program have no main(), or start point or where is it in these > examples. > > Thanks for your help > > Roger > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.525 / Virus Database: 322 - Release Date: 9/10/2003 > > > > ------------------------------------------------------- > 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/ > _______________________________________________ > 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: Roger C. <rc...@ic...> - 2003-10-29 22:15:27
|
Dear fellows, I runned the API examples WinTest and WinMenu that come with Dev C++ (folder Dev-Cpp\Examples\) with absolute sucess. I could notice that there is no main() start function in these programs. I would like to understand how can a C/C++ program have no main(), or start point or where is it in these examples. Thanks for your help Roger --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.525 / Virus Database: 322 - Release Date: 9/10/2003 |
|
From: Roger C. <rc...@ic...> - 2003-10-29 22:15:21
|
Dear fellows, I found nice documents on the page "http://www.bloodshed.net/dev/devcpp.html", but I did not find a document like a Dev C++ User Guide or Dev C++ Implemented Basic Library. Is there a good reference to use with Dev C++. Thanks for your help Roger --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.525 / Virus Database: 322 - Release Date: 9/10/2003 |
|
From: Guillermo K. <gui...@ya...> - 2003-10-29 22:02:13
|
Hi,=20 I=B4m just starting to do some tests with MySQL, downloaded and installed the Dev Pack. When I compile a simple test application I get this link error. Need some advise, thanks. ---------- Compiler: Default compiler Building Makefile: "D:\Dev\C++\sql\Makefile.win" Executing make... make.exe -f "D:\Dev\C++\sql\Makefile.win" all g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" =20 g++.exe main.o -o "testSQL.exe" -L"C:/Dev-Cpp/lib"=20 main.o(.text+0xfc):main.cpp: undefined reference to `mysql_init@4' make.exe: *** [testSQL.exe] Error 1 Execution terminated ---------- |
|
From: Reid T. <Rei...@at...> - 2003-10-29 21:59:50
|
If you configure Dev-C++ to use cygwin as the build env you will not have to change your code. =20 =20 reid=20 -----Original Message----- From: Alain Paschoud [mailto:ala...@ge...]=20 Sent: Wednesday, October 29, 2003 3:16 PM To: dev...@li... Subject: [Dev-C++] Get socket with socket function =09 =09 Hi all,=20 I managed to compile a simple program that should just wait for an icoming connection on a inet type socket. I did it under Mac OS X and Linux, and I want to do the same thing with dev-cpp.=20 Due to explanation give on this mailing list (thanks for your quick and usefull answers), I change the code to use winsock.h instead of sys/socket.h. I added the necessary library and DLLs. The program starts correctly and get it the function to create the socket file descriptor (it is very simple) :=20 int sockfd;=20 sockfd =3D socket(AF_INET, SOCK_STREAM, 0);=20 BUT the result of socket function is always -1 (sockfd =3D -1). What could be the cause of that ? I found a similar example of socket creation for windows, I did exactly the same as in the example. The only thing I have found in "socket" man page is :=20 "A -1 is returned if an error occurs"=20 But how can an error happen at this step ?=20 Thank you for any advice.=20 Best regards. |
|
From: Tim S. <ti...@we...> - 2003-10-29 21:09:51
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Alain, heres an example of building a http connection. Maybe not so good, but works :) so long Tim - -- WE ARE TEH BORG! ~ RESSISTANCE IS FUTILE! ~ http://we-are-teh-b.org/~tim/borg.key -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (MingW32) iD8DBQE/oC2vsMXChvH2qP0RAu+NAJsEDBKGhWKgwFnEuFUkOR0UENt6bACglqfi ENgdeU8titZk/cNBxeO65LY= =Bijr -----END PGP SIGNATURE----- |
|
From: Alain P. <ala...@ge...> - 2003-10-29 20:40:22
|
Hi all, I noticed that the errno value doesn't seem to contain the last error. So I used WSAGetLastError() function to retrieve what happened when using "socket" function. According to results (WSANOTINITIALISED), it seems that I have do initialize something when working with socket under windows. This makes, of course, code less portable due to specific Windows initialisation... But OK, I did initializsation. The problem is that now, the error is "WSAEAFNOSUPPORT". Is there so many differences between linux and windows when creating a socket ? Does soemone use inet sockets under dev-cpp and have a simple example ? I am under Win 95 (pretty old, I know...). Perhaps do I ask my questions to the wrong list (as my problems are not dev-cpp specific problems). If this is the case, can someone propose me a list where these questions will better match lists topic ? Best regards. |
|
From: Alain P. <ala...@ge...> - 2003-10-29 20:15:25
|
Hi all, I managed to compile a simple program that should just wait for an icoming connection on a inet type socket. I did it under Mac OS X and Linux, and I want to do the same thing with dev-cpp. Due to explanation give on this mailing list (thanks for your quick and usefull answers), I change the code to use winsock.h instead of sys/socket.h. I added the necessary library and DLLs. The program starts correctly and get it the function to create the socket file descriptor (it is very simple) : int sockfd; sockfd = socket(AF_INET, SOCK_STREAM, 0); BUT the result of socket function is always -1 (sockfd = -1). What could be the cause of that ? I found a similar example of socket creation for windows, I did exactly the same as in the example. The only thing I have found in "socket" man page is : "A -1 is returned if an error occurs" But how can an error happen at this step ? Thank you for any advice. Best regards. |
|
From: Marek <sp...@we...> - 2003-10-29 19:26:07
|
Hello, I'm trying to play sound from a C program using DirectSound ( Secondary Buffer ) and I'm getting an error: 109 dxsound.c structure has no member named `CreateSoundBuffer' piece of code is: #include <windows.h> #include <mmsystem.h> #include <dsound.h> [...] IDirectSound pds; /* DirectSound object */ IDirectSoundBuffer pdsbuffer; /* sound buffer */ /* initialization of DirectSound, CooperativeLevel etc. */ /* create wave format description */ memset( &pcmwf, 0, sizeof( WAVEFORMATEX ) ); /* filling the values */ /* create sound buffer description */ memset( &dsbd, 0, sizeof( DSBUFFERDESC ) ); /* filling the values */ IDirectSound_CreateSoundBuffer( &pdsbuffer, &dsbd, &pdsbuffer, NULL ); does anyone know the solution to this? I can send the entire unit if needed. Also when I tried to compile I was getting duplicate definition errors between dsound.h and mmsystem.h. The changes I had to make were: in mmsystem.h line 1008: change #ifndef _WAVEFORMATEX_ #define _WAVEFORMATEX_ to: #ifndef _WAVEFORMATEX_ #define _WAVEFORMATEX_ #define _LPCWAVEFORMATEX_DEFINED in dsound.h line 1899: change: typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX; to: //typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX; Am I missing something? Thanks in advance, Marek |
|
From: Daniel G. <sp...@ho...> - 2003-10-29 18:09:40
|
Controls are windows, but they look different (you can get a handle to a control like you can to a window). I'll keep an eye out for any tutorials, you might want to try a google or yahoo group for windows. msdn.com may help you too. >From: "EXT-Meyer, Robert J" <rob...@bo...> >To: <dev...@li...> >Subject: [Dev-C++] Looking for a good tutorial >Date: Wed, 29 Oct 2003 09:26:26 -0600 > >I thought I was doing well, traversing through theForger's Win32 API >Tutorial, until I reached the simple applications part. That's when I >realized I didn't have a firm grasp on the difference between windows, >dialogs, and controls. He says, "controls are just windows" which doesn't >make sense. I thought controls lived within windows. Resource usage is also >a bit vague. It's an excellent tutorial but I need more theory. I know I >need to go buy a book, but I'm a bit short on cash and the books are $50. >Is there a good, extensive, online tutorial on C++ which explains MFC, >OpenSource/GL, APIs, etc, then goes, from the beginning, explaining windows >programming - dialogs, windows, resources, classes, etc. I'm pretty good >with programming in a UNIX environment, but this windows stuff is very new, >and very exciting. > >Also, which is the best book to buy when I raise the finances? > >Rob > > >------------------------------------------------------- >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/ >_______________________________________________ >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 _________________________________________________________________ Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband |
|
From: P.D. v. Z. <pa...@my...> - 2003-10-29 16:03:58
|
Link the appropriate libraries :P I believe you need libws2_32.a (if I guess correctly from the name I used to use in VC++... ws2_32.lib). Regards, Paul -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Alain Paschoud Sent: Wednesday, October 29, 2003 3:13 PM To: dev...@li... Subject: [Dev-C++] Linker problem Hi all, I just redo my program to use winsock.h instead of <sys/sock.h>. Now, the header is found, and there is no compilation problem. But the linker can't find the functions I use (like "socket", "htons", "bind", etc.). This means, I suppose, that at least one library is not found by the linker (message : "Undifined reference to socket@12"). What should I do so that the linker can find the necessary functions ? Thank you for any help. -- ----------------------------------------------- Alain Paschoud Jeux de groupes pour des enfants : http://www.webalain.ch/jeux Groupe choral "Gospel Melody" : http://www.gospelmelody.ch Annuaire des choeurs de Suisse : http://www.choeurs.ch Chorverzeichnis der Schweiz : http://www.gesang.ch ----------------------------------------------- ------------------------------------------------------- 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/ _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: P.D. v. Z. <pa...@my...> - 2003-10-29 15:47:48
|
"Effective STL" is a book in the Professional Computing Series, by Addison Wesley. I don't have the book myself, but I do own several other similar books (some in the same series)... (Effective C++, More Effective C++, Exceptional C++, More Exceptional C++, C++ Gotchas)... these books address specific issues on an item by item basis. I still have to buy Effective STL, so I can't really help you with the contents of Item 5, but I'm sure someone else here owns the book and can tell you what Item 5 is about :) Regards, Paul -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Alvin Thompson Sent: Wednesday, October 29, 2003 4:38 PM To: Hossein Haeri Cc: dev...@li... Subject: Re: [Dev-C++] implicit declaration i'd like to know what's going on there, myself. where can i find this 'Item 5 in Effective STL (ESTL)' thing? and what's this 'ESTL'? if it's not online, can you briefly explain? -alvin Hossein Haeri wrote: > HI Joeri, > > Although I'm a Borland fan, in this special case, I think that DevC++ is right. > This is named to be: "C++'s most vexing feature" (or some variation of it), by Scott > Meyers. If you need the complete discusion, look Item 5 in Effective STL (ESTL). > I haven't got the book now, and am in a hurry. But if you need the bibliography do an > amazon search. > > In short, change the line you've mentioned to the following: > > outport((PORT+TXDOFFSET),(TXDHIGH)); > > Regards, > --Hossein ------------------------------------------------------- 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/ _______________________________________________ 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 |