dev-cpp-users Mailing List for Dev-C++ (Page 489)
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: <st...@nu...> - 2002-11-11 22:00:01
|
Hi again...
[Linker error] undefined reference to `IID_IDirectPlay8Peer'
[Linker error] undefined reference to `CLSID_DirectPlay8Peer'
[Linker error] undefined reference to `CoCreateInstance@20'
[Linker error] undefined reference to
`DXUtil_ConvertWideStringToGeneric(char *, unsigned wchar_t const *, int)'
[Linker error] undefined reference to
`MessageHandler__17CNetConnectWizardPvUlT1@16'
any ideas? I know I'm missing some library, but how can I find out which
one?
thanks!!
Stein Nygård - http://steinware.dk
[Being powerful is like being a lady... If you have to tell people you are,
you aren't]
|
|
From: Brian C. B. <bri...@ho...> - 2002-11-11 19:50:03
|
Hi Kenneth, > Hello, I am new to the list. Does anyone know if there is a way to keep > comments from appearing in italics in your source code? I'm using the > 'fixedsys' font, and it is very attractive, but comments get mangled when > they appear in italics. Try going under: Tools -> Editor Options. Select the Syntax tab and then Comments in the listbox. To the right, you should see a Styles groupbox. Unselect the Italicx checkbox. Hope that works for you ;-) Sincerely, Brian C. Becker Shall we accept good from God, and not trouble? |
|
From: Kenneth T <got...@ho...> - 2002-11-11 19:11:08
|
Hello, I am new to the list. Does anyone know if there is a way to keep comments from appearing in italics in your source code? I'm using the 'fixedsys' font, and it is very attractive, but comments get mangled when they appear in italics. _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |
|
From: <st...@nu...> - 2002-11-11 18:50:20
|
Thank you... works! :)
Stein Nygård - http://steinware.dk
[Being powerful is like being a lady... If you have to tell people you are,
you aren't]
----- Original Message -----
From: "Carlos García del Monte" <cg...@wo...>
To: "Stein Nygård" <st...@nu...>; "dev-cpp-users-list"
<dev...@li...>
Sent: Monday, November 11, 2002 6:49 PM
Subject: Re: [Dev-C++] directplay compilation?
> Put fvtable-thunks in compiler options
>
> =?iso-8859-1?Q?Stein_Nyg=E5rd?= escribió:
>
> > Hi all!
> >
> > I'm trying to learn a little directplay here, but I've started out
really
> > bad.
> >
> > #include <dplay.h>
> >
> > ...gives me this;
> >
> > 27 C:\DevCpp_4960\include\unknwn.h
> > `com_interface' only supported with -fvtable-thunks
> >
> > What can I do?
> >
> > thanks in advance!
> > regards
> >
> > Stein Nygård - http://steinware.dk
> > [Being powerful is like being a lady... If you have to tell people you
are,
> > you aren't]
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
|
|
From: Carlos d. M. <cg...@wo...> - 2002-11-11 17:52:34
|
Put fvtable-thunks in compiler options =3D?iso-8859-1?Q?Stein_Nyg=3DE5rd?=3D escribi=F3: > Hi all! > > I'm trying to learn a little directplay here, but I've started out real= ly > bad. > > #include <dplay.h> > > ...gives me this; > > 27 C:\DevCpp_4960\include\unknwn.h > `com_interface' only supported with -fvtable-thunks > > What can I do? > > thanks in advance! > regards > > Stein Nyg=E5rd - http://steinware.dk > [Being powerful is like being a lady... If you have to tell people you = are, > you aren't] > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: <st...@nu...> - 2002-11-11 16:05:29
|
Hi all!
I'm trying to learn a little directplay here, but I've started out really
bad.
#include <dplay.h>
...gives me this;
27 C:\DevCpp_4960\include\unknwn.h
`com_interface' only supported with -fvtable-thunks
What can I do?
thanks in advance!
regards
Stein Nygård - http://steinware.dk
[Being powerful is like being a lady... If you have to tell people you are,
you aren't]
|
|
From: Andres R. <an...@or...> - 2002-11-11 13:15:21
|
Try using 'g++ --version' or 'g++ -v' On *nix and solaris it should work OK, but undel Win.. it works too. (checked!) Andres. On Mon, 11 Nov 2002 02:47:12 -0500 "Santiago" <sa...@ho...> wrote: > Hi all, > Does anyone know how to find out the version of G++ in a unix solaris 8.0 system and in windows? > > Thanks San |
|
From: Carlos d. M. <cg...@wo...> - 2002-11-11 10:50:33
|
When using WriteFile you must change '\n' to "\r\n" (Line Feed + Carriage Return) Phil escribi=F3: > Hello Abhijit, > > Many thanks for your answer. > > >Use the ES_READONLY style flag. > > Yep, Well, in fact with the WS_CAPTION, it is OK also > to be "read only", which gives me also a text-bar. > But tnx for the info. > > As for the displayed datas, I need them to be > displayed as soon as they are received. So I have to > call SetWindowText() for each received data. Well, I > can save 50% of the calls, the user will hardly see > the difference in getting each info / 0.5 second or 2 > infos/second ;o) > > Now, using WriteFile() and SetWindowsText(), I have > noticed something strange abt the '\n', which is saved > as "non-displayable" by WriteFile. If I write my file > via WriteFile, then the text file loaded to my text > area (via SetWindowsText) does not include the "CR" as > wanted but a "non-displayable" char. Same behaviour > when I display my buffer directly to the text area via > SetWindowsText(). > When I write my text file (same buffer) via the usual > fprintf()/fputs(), then the '\n' is OK and > SetWindowsText displays it the way I want. > I can not find out the good option/flag to get '\n' as > a "good" CR :o( > > Well, anyway tnx again for your help, very useful and > appreciated indeed ! > > Phil. > > PS: As I am a subscriber to this list (!), I get your > answer via the list _too_ ;o) > FWIW & no hurt. > > __________________________________________________ > Do you Yahoo!? > U2 on LAUNCH - Exclusive greatest hits videos > http://launch.yahoo.com/u2 > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Vlada D. <dj...@im...> - 2002-11-11 08:35:46
|
----- Original Message ----- From: "Abhijit Shylanath" <mu...@gm...> To: "Vlada Djurovic" <dj...@im...>; "Eric Richards" <e.r...@pa...>; "'DevC++ help'" <dev...@li...> Sent: Friday, November 08, 2002 10:01 PM Subject: Re: [Dev-C++] MDI window > ----- Original Message ----- > From: Vlada Djurovic > To: Eric Richards ; 'DevC++ help' > Sent: Friday, November 08, 2002 1:11 PM > Subject: Re: [Dev-C++] MDI window > > > Eric, I received 3 copies of this message, but they don't contain anything. > Can you re-send it? Thnks. > > regards, Vlada > > [ Message Follows ] > ----------------------------- > > Try selecting all the text in the (HTML) message... the foreground text > colour is the same as the background text colour. Happens on (MS) OE when > the colour scheme in Windows uses a black background. > > ___________________________________________________________ > > Abhijit Shylanath > Hi, Abhijit You are right about this. Thanks for the tip. regards, Vlada > E-mail: mu...@gm... || ibr...@bi... > Web-site: http://mudeth.tripod.com/ > |
|
From: Vlada D. <dj...@im...> - 2002-11-11 08:34:54
|
Hi, Igor Thanks for your help. I think I'm starting to understand. regards, Vlada ----- Original Message ----- From: "Igor Pierscinski" <igo...@po...> To: <dev...@li...> Sent: Friday, November 08, 2002 1:48 PM Subject: RE: [Dev-C++] MDI window Hi, The biggest problem in your sources is that you try to create all the windows in WinMain. Besides there were some other errors too. I have corrected your code so that it compiles and works but there are still things to be corrected - try to read remarks in win32.hlp or MSDN. Best regards Igor Pierscinski -----Original Message----- From: Vlada Djurovic [mailto:dj...@im...] Sent: Thursday, November 07, 2002 10:21 AM To: 'DevC++ help' Subject: [Dev-C++] MDI window Hi, everybody I'm trying to create a MDI window (just display the frame window with child window in it, nothing else). I wrote some code based on instructions from MSDN, but something's wrong. I attached the code with this message, so if anyone can look at it and tell me what's wrong....thanks. regards, Vlada |
|
From: Santiago <sa...@ho...> - 2002-11-11 07:46:58
|
Hi all, Does anyone know how to find out the version of G++ in a unix solaris = 8.0 system and in windows? Thanks San |
|
From: Steele B. <ba...@wx...> - 2002-11-10 23:46:46
|
Hi all perhaps i didn't read the docs properly but i get this error when i try = to compile the openGL demo Building Makefile: "H:\devcpp\Dev-Cpp\Examples\OpenGL\Makefile.win" Executing make... make.exe -f "H:\devcpp\Dev-Cpp\Examples\OpenGL\Makefile.win" all Execution terminated What does this mean and how can I fix it??? thanks in advance Steele Baldock ba...@wx... |
|
From: Derek W. <py...@pr...> - 2002-11-10 22:34:05
|
Use vUpate that came with Dev-C++. It's in Tools->"Check for updates/packages", Put it in the help directory in the Dev-C++ directory. Wobien Doyer wrote: > Hello > I just downloaded and installed Dev-C++ version 4.9.6.0 > However, I did not get the file devcpp.hlp, so the help function > doesn´t work. > Where can I get it? > > Wobien > |
|
From: Wobien D. <wo...@pl...> - 2002-11-10 21:09:02
|
Hello I just downloaded and installed Dev-C++ version 4.9.6.0 However, I did not get the file devcpp.hlp, so the help function = doesn=B4t work. Where can I get it? Wobien |
|
From: Pierre L. <fam...@gl...> - 2002-11-10 19:39:47
|
Ok, I found the error! I downloaded the image library and all compile fine. Pierre |
|
From: Pierre L. <fam...@gl...> - 2002-11-10 19:27:32
|
Hi, The compiler option for wxWindow shows lxpm. When I compile a very si= mple programm, the compiler output shows me an error like =93cannot find = =96lxpm=94. When I did a check on the wxWindows package, the file libxpm.a was re= ported as missing. So, what can I do to recover the missing file? Pierre |
|
From: Phil <tsy...@ya...> - 2002-11-10 19:22:56
|
Hello Abhijit, Many thanks for your answer. >Use the ES_READONLY style flag. Yep, Well, in fact with the WS_CAPTION, it is OK also to be "read only", which gives me also a text-bar. But tnx for the info. As for the displayed datas, I need them to be displayed as soon as they are received. So I have to call SetWindowText() for each received data. Well, I can save 50% of the calls, the user will hardly see the difference in getting each info / 0.5 second or 2 infos/second ;o) Now, using WriteFile() and SetWindowsText(), I have noticed something strange abt the '\n', which is saved as "non-displayable" by WriteFile. If I write my file via WriteFile, then the text file loaded to my text area (via SetWindowsText) does not include the "CR" as wanted but a "non-displayable" char. Same behaviour when I display my buffer directly to the text area via SetWindowsText(). When I write my text file (same buffer) via the usual fprintf()/fputs(), then the '\n' is OK and SetWindowsText displays it the way I want. I can not find out the good option/flag to get '\n' as a "good" CR :o( Well, anyway tnx again for your help, very useful and appreciated indeed ! Phil. PS: As I am a subscriber to this list (!), I get your answer via the list _too_ ;o) FWIW & no hurt. __________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 |
|
From: Ioannis V. <no...@ho...> - 2002-11-10 17:30:02
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Chris Dye > Sent: Sunday, November 10, 2002 4:57 AM > To: dev...@li... > Subject: [Dev-C++] Help with Program > > > I have been reading a book called "C++ From Scratch" > and there is a program that you make as you read the > book. The book has Dev C++ version 3, but I updated > to the beta. What I have started is attached so that > you can test it. I'm a newbie, so it is kinda > difficult to work with. At first C++ distinguishes between uppercase and lowcase letters. So char Test; and char test; are different variables. Secondly, you wrote "count" instead of "cout" many times. Third, you wrote end1 instead of endl (L). I am sending you back the fixed (and a bit beautified) version. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |
|
From: Daniel G. <sp...@ho...> - 2002-11-10 16:01:24
|
might be you need to turn up the warning level on the compiler. I use VC++ these days so I'm not sure about the new DEV. P.S. If sending pics could you cut out the relevant part and post that? 114k is a large amount for hotmail users (2mb storage). Tot nog eens! Daniel _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus |
|
From: Per W. <pw...@ia...> - 2002-11-10 14:53:52
|
A nice program should check which day is first of week in current locale.
Here is code updated with such check:
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#define ALLOW_S2_LESS_THAN_S1
bool is_same_week(SYSTEMTIME& s1,SYSTEMTIME& s2) {
TCHAR buf[2];
FILETIME f1,f2;
ULARGE_INTEGER u1,u2;
#ifdef ALLOW_S2_LESS_THAN_S1
ULONGLONG tmp;
#endif
int size,firstday,wday1,wday2;
/* Check which weekday that starts the week. 0=monday */
size = GetLocaleInfo(LOCALE_USER_DEFAULT,
LOCALE_IFIRSTDAYOFWEEK,buf,2);
firstday = size==0 ? 6 : atoi(buf);
printf("First day of week is %d (0=monday)\n",firstday);
/* Adjust the weekdays given in the SYSTEMTIME struct (0=sunday)
* so that the first day of the week according to locale
* becomes 0.
*/
wday1 = (s1.wDayOfWeek + (6 - firstday)) % 7;
wday2 = (s2.wDayOfWeek + (6 - firstday)) % 7;
printf("w1 = %d (%d)\n",wday1,s1.wDayOfWeek);
printf("w2 = %d (%d)\n",wday2,s2.wDayOfWeek);
#ifndef ALLOW_S2_LESS_THAN_S1
if (wday2 < wday1)
/* Given the assumption that s2 must be larger than s1,
* they can't be in same week unless s2 has weekday
* >= s1.
*/
return false;
#endif /* ALLOW_S2_LESS_THAN_S1 */
/* Convert from SYSTEMTIME to a single numeric value */
SystemTimeToFileTime(&s1,&f1);
SystemTimeToFileTime(&s2,&f2);
u1.LowPart = f1.dwLowDateTime;
u1.HighPart = f1.dwHighDateTime;
u2.LowPart = f2.dwLowDateTime;
u2.HighPart = f2.dwHighDateTime;
/* Now have time in 100-nanosecond steps */
#ifdef ALLOW_S2_LESS_THAN_S1
/* if s1 <= s2 isn't a requirement then have to check if the two
* values must be swapped.
*/
if (u1.QuadPart < u2.QuadPart) {
if (wday2 < wday1) return false;
} else {
if (wday1 < wday2) return false;
tmp = u1.QuadPart;
u1.QuadPart = u2.QuadPart;
u2.QuadPart = tmp;
}
#else
if (u2.QuadPart < u1.QuadPart)
/* End of time interval before start... */
return false;
#endif /* !ALLOW_S2_LESS_THAN_S1 */
if (u2.QuadPart > (u1.QuadPart + 7*24*3600*(ULONGLONG)10000000))
/* more than 7 days between the two time stamps, so they can't
* be in same week.
*/
return false;
return true;
}
/Per W
|
|
From: Ihsan A. Al D. <ia...@jo...> - 2002-11-10 13:47:58
|
Try this:
#include <iostream>
using namespace std;
int main()
{
cout << "Hej verden!\n";
return 0;
}
OR
#include <iostream>
int main()
{
std::cout << "Hej verden!\n";
return 0;
}
Mohammed
----- Original Message -----
From: "Daniel Glenfield" <sp...@ho...>
To: <ti...@td...>; <dev...@li...>
Sent: Saturday, November 09, 2002 11:38 AM
Subject: Re: [Dev-C++] new
> #include <iostream>
>
> int main()
> {
> using namespace std;
> std::cout<<"Hej verden!\n";
> return 0;
> }
>
>
> if you use iostream without the .h extention you need the using namespace
> std; bit.
>
> post error messages also in future, they will help us get a quick response
> to you!
>
> Daniel
>
>
>
>
>
> >From: "Tina" <ti...@td...>
> >To: <dev...@li...>
> >Subject: [Dev-C++] new
> >Date: Fri, 9 Nov 2001 18:33:22 +0100
> >
> >Hi
> >
> >Im new on the list, and in programming, i have tryed a tut but i can´t
> >compile it, when i hit compile button, it just says no errors and no
> >outputs.
> >
> >What do i do wrong? any ideas?
> >
> >Tina
> >
> >
> >
> >
> >
> >
> >-------------------------------------------------------
> >This sf.net email is sponsored by:ThinkGeek
> >Welcome to geek heaven.
> >http://thinkgeek.com/sf
> >_______________________________________________
> >Dev-cpp-users mailing list
> >Dev...@li...
> >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: <or...@vp...> - 2002-11-10 12:12:33
|
Hi! Sorry for confusing then. Please take my previous writing as not being sent. CGdM>You must compile it as a console application and pass -lmingw32 CGdM>-lSDLmain -lSDL to the linker options. -- Best regards, Oroszi Balázs mailto:or...@vp... |
|
From: <or...@vp...> - 2002-11-10 11:40:36
|
Hello Everyone! Matthews wrote: M> I have a strange error when attempting to use the SDL libraries M> (www.libsdl.org) I've configured everything right, downloaded the complete M> package with all the libraries, include files, etc. yet when I attempt to M> compile the sample SDL program (with -lsdl) I get the error [Linker error] M> Unknown reference to `WinMain@16' What's wrong? Do you compile it as a Windows application or a console app? I guess you try to compile it as a console app. Whenever you want to compile Windows applications, you need to pass the -mwindows option to the linker. Colin Peters, Windows programming tutorial: "That option links in a set of standard Win32 libraries and also makes the program a "GUI" program (i.e. a program with windows) instead of a "console" program (i.e. a command-line based program). If you forget -mwindows..." you will get the error what you mentioned. In Dev-cpp you need to change the project to a windows application project. I hope I could help. Actually this is my FIRST post to the list, I'm a newbie. -- Best regards, Oroszi Balázs mailto:or...@vp... |
|
From: /KY <cru...@in...> - 2002-11-10 11:40:00
|
If I try to compile the following header: #include <SDL/SDL.h> #include <SDL/SDL_opengl.h> (without any additional includes) using Dev-C++ 4.9.6.0, I obtain the following error: In file included from test.h:4, SDL/SDL_opengl.h:2154: redefinition of `PFNGLCOLORSUBTABLEEXTPROC' GL/gl.h:1493: `PFNGLCOLORSUBTABLEEXTPROC' previously declared here It works well if I use #define NO_SDL_GLEXT #include <SDL/SDL.h> #include <SDL/SDL_opengl.h> |
|
From: <jcm...@ub...> - 2002-11-10 11:22:52
|
<BODY style=3D"FONT: 10pt arial"><DIV> <P class=3DMsoNormal><SPAN style=3D"mso-ansi-language: PT-BR">When I tr= y compiler, using the DEV C++ version 4,<SPAN style=3D"mso-spacerun: ye= s"> </SPAN>show me 02 windows: a "COMPILER AND LINK OUTPUT"<SPAN = style=3D"mso-spacerun: yes"> </SPAN>and another, display me "COMP= ILE COMPLETED"and any error occurs. But, it didn't compile the files.<?= xml:namespace prefix =3D o ns =3D "urn:schemas-microsoft-com:office:off= ice" /><o:p></o:p></SPAN></P> <P class=3DMsoNormal><SPAN style=3D"mso-ansi-language: PT-BR">Using the= DEV C++ 4.9.5.9.0, show me "SOURCE FILE" not compile. <o:p></o:p></SPA= N></P> <P class=3DMsoNormal><SPAN style=3D"mso-ansi-language: PT-BR">Anybody h= elp me?? <o:p></o:p></SPAN></P></DIV><br><br>Voc=EA ainda paga para ace= ssar a Internet? Conhe=E7a <a href=3D"http://free.ubbi.com.br/">Ubbi Fr= ee!</a> Muito mais que Internet Gr=E1tis - <a href=3D"http://free.ubbi.= com.br/">http://free.ubbi.com.br/</a> -</body> |