dev-cpp-users Mailing List for Dev-C++ (Page 522)
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: Per W. <pw...@ia...> - 2002-09-24 12:45:24
|
Sorry. Either perform all drawing to a bitmap that may be blitted back to the window on a WM_PAINT, or keep a list of all draw operations, and replay the list. The OS does not keep track of the contents of the windows. /Per W On Tue, 24 Sep 2002, Vlada Djurovic wrote: > Hello, list > I wrote a program for drawing in a window( nothing special, just colord > lines). It works fine, but, when I minimize the window, and then restore > it, the lines are gone. I suppose that when I restore the window from > minimized state, a WM_PAINT message is posted. Is this correct? Is there > some API function which can restore the contents of the window in > response to this message or I have to do it myself? > |
|
From: Vlada D. <dj...@im...> - 2002-09-24 12:38:20
|
Hello, list I wrote a program for drawing in a window( nothing special, just colord lines). It works fine, but, when I minimize the window, and then restore it, the lines are gone. I suppose that when I restore the window from minimized state, a WM_PAINT message is posted. Is this correct? Is there some API function which can restore the contents of the window in response to this message or I have to do it myself? |
|
From: Vlada D. <dj...@im...> - 2002-09-24 12:31:18
|
Hi, Kurt I find myself in pretty same position as you, so I can tell you what I figured out so far by myself: there is a Win32 API tutorial on www.winprog.org , it's not bad, I think you can find other links on that site. Besides, you can use MSDN, but it is kind of difficult to find exactly what you are looking for. Regards, djura -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Ext...@no... Sent: utorak, 24. septembar 2002 13:02 To: dev...@li... Subject: [Dev-C++] Making Windows applications in C++ Hi.=20 I have received a small dev-cpp c++ windows program which is basically just an example on how to create a menu in windows. It works nice and now I have an urge for more. Do any of guys know some good online stuff which can help a c++ programmer with only 6 months of experience to create window applications?=20 Best regards Kurt. =20 > -----Original Message----- > From: ext dev...@li... > [mailto:dev...@li...] > Sent: 23 September, 2002 22:00 > To: dev...@li... > Subject: Dev-cpp-users digest, Vol 1 #982 - 8 msgs >=20 >=20 > Send Dev-cpp-users mailing list submissions to > dev...@li... >=20 > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... >=20 > You can reach the person managing the list at > dev...@li... >=20 > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." >=20 >=20 > Today's Topics: >=20 > 1. Re: ANSI problem (Daniel Glenfield) > 2. Re: clrscr() and c99 compatibility (Carlos=20 > =3D?iso-8859-1?Q?Garc=3DEDa?=3D del Monte) > 3. Link OBJ files with a C++ program with Dev-C++=20 > (=3D?iso-8859-1?Q?Roberto_E._Mondrag=3DF3n_R._457885?=3D) > 4. Re: ANSI problem (metalseb) > 5. Re: resource compilation error (metalseb) > 6. Confusing Linker Error (Napoleon Ahiable) > 7. Still can not get update to work (Eric Richards) > 8. Re: Confusing Linker Error (Elizabeth Barham) >=20 > --__--__-- >=20 > Message: 1 > From: "Daniel Glenfield" <sp...@ho...> > To: dev...@li... > Subject: Re: [Dev-C++] ANSI problem > Date: Mon, 23 Sep 2002 15:14:01 +0100 >=20 > Ah I remember this with HBRUSHes, you need to add the type or=20 > something...I=20 > can't remember what exactly it was though. Has this jogged=20 > anyone's memory? >=20 >=20 > >From: "Vlada Djurovic" <dj...@im...> > >To: "DevC++ help" <dev...@li...> > >Subject: [Dev-C++] ANSI problem > >Date: Mon, 23 Sep 2002 14:44:16 +0200 > > > >Hi, everybody > >I wrote this function: > > > >void CLine::Draw(HDC hdc) > >{ > > HPEN hPen,hOldPen; > > hPen=3DCreatePen(PS_SOLID,m_iWidth,m_crColor); > > hOldPen=3DSelectObject(hdc,hPen); =20 > //this is where I > >get error message > > > > MoveToEx(hdc,m_ptFrom.x,m_ptFrom.y,NULL); > > LineTo(hdc,m_ptTo.x,m_ptTo.y); > > SelectObject(hdc,hOldPen); > > DeleteObject(hPen); > > DeleteObject(hOldPen); > >} > > > >When I try to compile it, I get the message "ANSI C++=20 > forbids implicit > >conversion from `void *' in assignment" in commented line.=20 > What is the > >problem? >=20 >=20 >=20 >=20 > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com >=20 >=20 >=20 > --__--__-- >=20 > Message: 2 > Date: Mon, 23 Sep 2002 17:13:11 +0200 > From: Carlos =3D?iso-8859-1?Q?Garc=3DEDa?=3D del Monte <cg...@wo...> > To: dev-cpp-users-list <dev...@li...> > Subject: Re: [Dev-C++] clrscr() and c99 compatibility >=20 > conio are files that have change between releases of mingw,=20 > first I got > perfect use of its function, then I upgraded to mingw1.1 and it lost > functionality, and now in mingw2.0.0 it seems fewer (just now=20 > I see at it=3D > and > it no defines clrscr), it has only the .h file, and it lost=20 > the .c file, =3D > so I > copied the two files from the conio which came with Dev-C++=20 > 4.0 and I use > them. >=20 > Matthews escribi=3DF3: >=20 > > I recently downloaded the new dev-c++ beta version, and am=20 > a bit stuck. > > Looking through the included header files, I found a=20 > prototype for the > > clrscr() function in conio.h, but trying to use clrscr()=20 > resulted in a > > linker error. What header do I need to include to use clrscr()? > > > > Also, I believe dev-c++ to be C99 compatible, but how come=20 > when I tried=3D > to > > declare "char choice" halfway down a function, it gave me a=20 > parsing err=3D > or? > > C99 was supposed to allow variable declarations anywhere in=20 > the code. > > > > Thanks. > > > > ------------------------------------------------------- > > 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 >=20 >=20 >=20 > --__--__-- >=20 > Message: 3 > From: =3D?iso-8859-1?Q?Roberto_E._Mondrag=3DF3n_R._457885?=3D=20 > <004...@ac...> > To: <dev...@li...> > Date: Mon, 23 Sep 2002 12:25:48 -0500 > Subject: [Dev-C++] Link OBJ files with a C++ program with Dev-C++ >=20 > This is a multi-part message in MIME format. >=20 > ------=3D_NextPart_000_001E_01C262FC.59795640 > Content-Type: text/plain; > charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable >=20 > How can I link a OBJ file (from a ASM program) with a C++=20 > program using =3D > Dev-C++? >=20 > Thanks! > ------=3D_NextPart_000_001E_01C262FC.59795640 > Content-Type: text/html; > charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable >=20 > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D > charset=3D3Diso-8859-1"> > <META content=3D3D"MSHTML 6.00.2800.1106" name=3D3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D3D#ffffff> > <DIV><FONT face=3D3DArial size=3D3D2>How can I link a OBJ file=20 > (from a ASM =3D > program) with=3D20 > a C++ program using Dev-C++?</FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > <DIV><FONT face=3D3DArial = size=3D3D2>Thanks!</FONT></DIV></BODY></HTML> >=20 > ------=3D_NextPart_000_001E_01C262FC.59795640-- >=20 >=20 >=20 > --__--__-- >=20 > Message: 4 > Date: Mon, 23 Sep 2002 19:35:12 +0200 > To: DevC++ help <dev...@li...> > From: metalseb <met...@fr...> > Subject: Re: [Dev-C++] ANSI problem > Reply-To: met...@fr... >=20 > > hOldPen=3DSelectObject(hdc,hPen); =20 > //this is where I > > get error message >=20 > Well, SelectObject returns an HGIOBJ pointer, just cast the=20 > return value like this : >=20 > hOldPen=3D(HPEN)SelectObject(hdc,hPen); =20 >=20 > And it should compile OK. Note that some compilers do the=20 > cast by themselves. This is not the=20 > case with MingW. And I think this is *really* better. >=20 > -- > Seb >=20 >=20 >=20 > --__--__-- >=20 > Message: 5 > Date: Mon, 23 Sep 2002 19:35:15 +0200 > To: dev...@li... > From: metalseb <met...@fr...> > Subject: Re: [Dev-C++] resource compilation error > Reply-To: met...@fr... >=20 > > windres.exe: Script.rc:12: parse error >=20 > line 12 says : >=20 > > CTEXT "Bartosz Milewski =A9 2001",IDC_STATIC,10,33,121,14 >=20 > Just replace IDC_STATIC with -1 and it should compile without=20 > problems. Dunno why=20 > IDC_STATIC is not recognised by Windres, even since=20 > winresrc.h is included. >=20 > Tales and mysteries of Windows C programming... >=20 > -- > Seb >=20 >=20 >=20 > --__--__-- >=20 > Message: 6 > From: "Napoleon Ahiable" <nah...@so...> > To: <dev...@li...> > Date: Mon, 23 Sep 2002 19:45:31 +0100 > Subject: [Dev-C++] Confusing Linker Error >=20 > This is a multi-part message in MIME format. >=20 > ------=3D_NextPart_000_0054_01C26339.C64A9EE0 > Content-Type: text/plain; > charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable >=20 > Hello, >=20 > I'm trying to build a sample program from "C++ In Action" I=20 > have all the =3D > general files in a Library and compiled all to create=20 > WinLib.a. I then =3D > created the main project with the rest of the files. Under =3D > >Project>Options I included the Path to my Library under both=20 > Library =3D > Directories and Include Directories. When I compile the=20 > program this is =3D > the error that I get. I'll appreaciate an explanation and a solution = =3D > please. Thanks. >=20 > Napoleon. >=20 > Building Makefile: "C:\Projects\PortCalck\Makefile.win" > Executing make... > mingw32-make.exe -f "C:\Projects\PortCalck\Makefile.win" all > windres.exe -i PORTCA~1.RC -I rc -o PortCalck.res -O coff=3D20 >=20 > g++.exe Calc.o Commander.o Ctrl.o FunTab.o LoadDlg.o Main.o=20 > MenuTable.o =3D > Nodes.o Output.o Parser.o SaveDlg.o Scanner.o Serial.o=20 > Store.o SymTab.o =3D > View.o AboutDlg.o PortCalck.res -o "PortCalk.exe" -L"C:\MinGW\lib" =3D > -L"C:\Projects\WinLib" -I"C:\MinGW\include" =20 > -I"C:\MinGW\include\c++" =3D > -I"C:\MinGW\include" -I"C:\Projects\WinLib" -D_WIN32_IE=3D3D0x0300 = =3D > -DSTRICT -s -mwindows >=20 > Commander.o(.text$_ZN6Dialog5ModalC1EN3Win3DowEiRNS_15ModalCon > trollerE+0x=3D > 11):Commander.cpp: undefined reference to =3D > `_ZN6Dialog9ModalProcEP6HWND__jjl@16' > Ctrl.o(.text$_ZN4View8GetInputEv+0x16):Ctrl.cpp: undefined=20 > reference to =3D > `Win::Edit::GetText() const' >=20 > Ctrl.o(.text$_ZN4View12RefreshPopupEP7HMENU__i+0x17):Ctrl.cpp: > undefined =3D > reference to `Menu::DropDown::RefreshPopup(HMENU__*, int)' > Ctrl.o(.text$_ZNK3Cmd10VectorExecI9CommanderE4TestEPKc+0x2e):C > trl.cpp: =3D > undefined reference to `Cmd::Vector::CmdToId(char const*) const' > LoadDlg.o(.text$_ZN3Win7ListBox13ListDirectoryENS_3DowEPcij+0x > 82):LoadDlg=3D > .cpp: undefined reference to `Win::Exception::Exception(std::string = =3D > const&, std::string const&, unsigned long)' > Main.o(.text+0x72):Main.cpp: undefined reference to =3D > `Win::ClassMaker::ClassMaker(char const*, HINSTANCE__*)' > Main.o(.text+0x83):Main.cpp: undefined reference to =3D > `Win::ClassMaker::SetIcons(int)' > Main.o(.text+0xab):Main.cpp: undefined reference to =3D > `Win::Maker::Maker(char const*, HINSTANCE__*)' >=20 > Main.o(.text+0xfa):Main.cpp: undefined reference to =3D > `Win::Maker::Create(Win::Controller&, char const*)' > Main.o(.text+0x143):Main.cpp: undefined reference to =3D > `Win::MsgPrepro::Pump()' > Main.o(.text$_ZN9SmallIconD1Ev+0xd):Main.cpp: undefined reference to = =3D > `Icon::~Icon()' > Main.o(.text$_ZN7StdIconD1Ev+0xd):Main.cpp: undefined reference to =3D > `Icon::~Icon()' > SaveDlg.o(.text+0x7b):SaveDlg.cpp: undefined reference to =3D > `Win::Edit::GetText() const' > SymTab.o(.text+0x1da):SymTab.cpp: undefined reference to =3D > `Win::Exception::Exception(std::string const&, std::string const&, =3D > unsigned long)' > View.o(.text+0x51):View.cpp: undefined reference to =3D > `Menu::DropDown::DropDown(Menu::BarItem const*, Cmd::Vector&)' > View.o(.text+0x12d):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x178):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x1c3):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x1ec):View.cpp: undefined reference to =3D > `Win::Dow::SubClass(Win::SubController*)' > View.o(.text+0x239):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x27b):View.cpp: undefined reference to =3D > `Font::Stock::GetTextSize(int&, int&)' > View.o(.text+0x429):View.cpp: undefined reference to =3D > `Menu::DropDown::DropDown(Menu::BarItem const*, Cmd::Vector&)' > View.o(.text+0x505):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x550):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x59b):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x5c4):View.cpp: undefined reference to =3D > `Win::Dow::SubClass(Win::SubController*)' > View.o(.text+0x611):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x653):View.cpp: undefined reference to =3D > `Font::Stock::GetTextSize(int&, int&)' > View.o(.text+0x7d3):View.cpp: undefined reference to =3D > `Menu::DropDown::AttachToWindow(HWND__*)' > View.o(.text+0x952):View.cpp: undefined reference to =3D > `Win::Edit::Clear()' > View.o(.text$_ZN3Win14StatusBarMakerC1EP6HWND__i+0x33):View.cpp: =3D > undefined reference to `InitCommonControlsEx@4' > View.o(.text$_ZN3Win14StatusBarMakerC1EP6HWND__i+0x87):View.cpp: =3D > undefined reference to `Win::Exception::Exception(std::string=20 > const&, =3D > std::string const&, unsigned long)' > View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x1f):View.cpp:=20 > undefined =3D > reference to `CreateStatusWindowA@16' > View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x75):View.cpp:=20 > undefined =3D > reference to `Win::Exception::Exception(std::string const&,=20 > std::string =3D > const&, unsigned long)' > View.o(.text$_ZN3Win12ControlMakerC2EPKcP6HWND__i+0x25):View.cpp: =3D > undefined reference to `Win::ChildMaker::ChildMaker(char const*, =3D > Win::Dow, int)' >=20 > mingw32-make.exe: *** [PortCalk.exe] Error 1 >=20 > Execution terminated >=20 >=20 >=20 >=20 > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.389 / Virus Database: 220 - Release Date: 16/09/2002 > ------=3D_NextPart_000_0054_01C26339.C64A9EE0 > Content-Type: text/html; > charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable >=20 > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D > charset=3D3Diso-8859-1"> > <META content=3D3D"MSHTML 6.00.2800.1106" name=3D3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D3D#ffffff> > <DIV><FONT face=3D3DArial = size=3D3D2><STRONG>Hello,</STRONG></FONT></DIV> > <DIV><FONT face=3D3DArial = size=3D3D2><STRONG></STRONG></FONT> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2><STRONG>I'm trying to build=20 > a sample =3D > program from=3D20 > "C++ In Action" I have all the general files in a Library and=20 > compiled =3D > all to=3D20 > create WinLib.a. I then created the main project with the=20 > rest of the =3D > files.=3D20 > Under >Project>Options I included the Path to my Library under = =3D > both=3D20 > Library Directories and Include Directories. When I compile=20 > the program =3D > this is=3D20 > the error that I get. I'll appreaciate an explanation and a solution = =3D > please.=3D20 > Thanks.</STRONG></FONT></DIV> > <DIV><FONT face=3D3DArial = size=3D3D2><STRONG></STRONG></FONT> </DIV> > <DIV><FONT face=3D3DArial=20 > size=3D3D2><STRONG>Napoleon.</STRONG></FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM>Building Makefile:=3D20 > "C:\Projects\PortCalck\Makefile.win"<BR>Executing =3D20 > make...<BR>mingw32-make.exe -f = "C:\Projects\PortCalck\Makefile.win"=3D20 > all<BR>windres.exe -i PORTCA~1.RC -I rc -o PortCalck.res -O coff=3D20 > </EM></FONT></DIV> > <DIV><EM></EM> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM>g++.exe Calc.o=20 > Commander.o Ctrl.o =3D > FunTab.o=3D20 > LoadDlg.o Main.o MenuTable.o Nodes.o Output.o Parser.o SaveDlg.o =3D > Scanner.o=3D20 > Serial.o Store.o SymTab.o View.o AboutDlg.o PortCalck.res -o =3D > "PortCalk.exe"=3D20 > -L"C:\MinGW\lib" -<STRONG>L"C:\Projects\WinLib"</STRONG> =3D20 > -I"C:\MinGW\include" -I"C:\MinGW\include\c++" =3D20 > -I"C:\MinGW\include" =20 > -<STRONG>I"C:\Projects\WinLib"</STRONG> =3D >=20 > -D_WIN32_IE=3D3D0x0300 -DSTRICT -s -mwindows</EM></FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM></EM></FONT> </DIV> > <DIV><FONT face=3D3DArial=3D20 > size=3D3D2><EM>Commander.o(.text$_ZN6Dialog5ModalC1EN3Win3DowEiR > NS_15ModalC=3D > ontrollerE+0x11):Commander.cpp:=3D20 > undefined reference to </EM><A=3D20 > href=3D3D"mailto:`_ZN6Dialog9ModalProcEP6HWND__jjl@16'"><EM>`_ZN > 6Dialog9Mod=3D > alProcEP6HWND__jjl@16'</EM></A><BR><EM>Ctrl.o(.text$_ZN4View8G > etInputEv+0=3D > x16):Ctrl.cpp:=3D20 > undefined reference to `Win::Edit::GetText() const'</EM></FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM></EM></FONT> </DIV> > <DIV><FONT face=3D3DArial=3D20 > size=3D3D2><EM>Ctrl.o(.text$_ZN4View12RefreshPopupEP7HMENU__i+0x > 17):Ctrl.cp=3D > p:=3D20 > undefined reference to `Menu::DropDown::RefreshPopup(HMENU__*,=3D20 > int)'<BR>Ctrl.o(.text$_ZNK3Cmd10VectorExecI9CommanderE4TestEPK > c+0x2e):Ctr=3D > l.cpp:=3D20 > undefined reference to `Cmd::Vector::CmdToId(char const*)=3D20 > const'<BR>LoadDlg.o(.text$_ZN3Win7ListBox13ListDirectoryENS_3D > owEPcij+0x8=3D > 2):LoadDlg.cpp:=3D20 > undefined reference to `Win::Exception::Exception(std::string =3D > const&,=3D20 > std::string const&, unsigned=20 > long)'<BR>Main.o(.text+0x72):Main.cpp:=3D20 > undefined reference to `Win::ClassMaker::ClassMaker(char const*,=3D20 > HINSTANCE__*)'<BR>Main.o(.text+0x83):Main.cpp: undefined=20 > reference to=3D20 > `Win::ClassMaker::SetIcons(int)'<BR>Main.o(.text+0xab):Main.cpp: =3D > undefined=3D20 > reference to `Win::Maker::Maker(char const*, =3D > HINSTANCE__*)'</EM></FONT></DIV> > <DIV><EM></EM> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM>Main.o(.text+0xfa):Main.cpp: = =3D > undefined=3D20 > reference to `Win::Maker::Create(Win::Controller&, char=3D20 > const*)'<BR>Main.o(.text+0x143):Main.cpp: undefined reference to=3D20 > `Win::MsgPrepro::Pump()'<BR>Main.o(.text$_ZN9SmallIconD1Ev+0xd > ):Main.cpp:=3D > =3D20 > undefined reference to=3D20 > `Icon::~Icon()'<BR>Main.o(.text$_ZN7StdIconD1Ev+0xd):Main.cpp: > undefined =3D >=20 > reference to `Icon::~Icon()'<BR>SaveDlg.o(.text+0x7b):SaveDlg.cpp: =3D > undefined=3D20 > reference to `Win::Edit::GetText() =3D > const'<BR>SymTab.o(.text+0x1da):SymTab.cpp:=3D20 > undefined reference to `Win::Exception::Exception(std::string =3D > const&,=3D20 > std::string const&, unsigned=20 > long)'<BR>View.o(.text+0x51):View.cpp:=3D20 > undefined reference to=20 > `Menu::DropDown::DropDown(Menu::BarItem const*,=3D20 > Cmd::Vector&)'<BR>View.o(.text+0x12d):View.cpp: undefined=20 > reference =3D > to=3D20 > `Win::ChildMaker::Create(char=20 > const*)'<BR>View.o(.text+0x178):View.cpp:=3D20 > undefined reference to `Win::ChildMaker::Create(char=3D20 > const*)'<BR>View.o(.text+0x1c3):View.cpp: undefined reference to=3D20 > `Win::ChildMaker::Create(char=20 > const*)'<BR>View.o(.text+0x1ec):View.cpp:=3D20 > undefined reference to=3D20 > `Win::Dow::SubClass(Win::SubController*)'<BR>View.o(.text+0x23 > 9):View.cpp=3D > :=3D20 > undefined reference to `Win::ChildMaker::Create(char=3D20 > const*)'<BR>View.o(.text+0x27b):View.cpp: undefined reference to=3D20 > `Font::Stock::GetTextSize(int&, =3D > int&)'<BR>View.o(.text+0x429):View.cpp:=3D20 > undefined reference to=20 > `Menu::DropDown::DropDown(Menu::BarItem const*,=3D20 > Cmd::Vector&)'<BR>View.o(.text+0x505):View.cpp: undefined=20 > reference =3D > to=3D20 > `Win::ChildMaker::Create(char=20 > const*)'<BR>View.o(.text+0x550):View.cpp:=3D20 > undefined reference to `Win::ChildMaker::Create(char=3D20 > const*)'<BR>View.o(.text+0x59b):View.cpp: undefined reference to=3D20 > `Win::ChildMaker::Create(char=20 > const*)'<BR>View.o(.text+0x5c4):View.cpp:=3D20 > undefined reference to=3D20 > `Win::Dow::SubClass(Win::SubController*)'<BR>View.o(.text+0x61 > 1):View.cpp=3D > :=3D20 > undefined reference to `Win::ChildMaker::Create(char=3D20 > const*)'<BR>View.o(.text+0x653):View.cpp: undefined reference to=3D20 > `Font::Stock::GetTextSize(int&, =3D > int&)'<BR>View.o(.text+0x7d3):View.cpp:=3D20 > undefined reference to=3D20 > `Menu::DropDown::AttachToWindow(HWND__*)'<BR>View.o(.text+0x95 > 2):View.cpp=3D > :=3D20 > undefined reference to=3D20 > `Win::Edit::Clear()'<BR>View.o(.text$_ZN3Win14StatusBarMakerC1 > EP6HWND__i+=3D > 0x33):View.cpp:=3D20 > undefined reference to </EM><A=3D20 > href=3D3D"mailto:`InitCommonControlsEx@4'"><EM>`InitCommonContro > lsEx@4'</EM=3D > ></A><BR><EM>View.o(.text$_ZN3Win14StatusBarMakerC1EP6HWND__i+ > 0x87):View.=3D > cpp:=3D20 > undefined reference to `Win::Exception::Exception(std::string =3D > const&,=3D20 > std::string const&, unsigned=3D20 > long)'<BR>View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x1f): > View.cpp:=3D20 > undefined reference to </EM><A=3D20 > href=3D3D"mailto:`CreateStatusWindowA@16'"><EM>`CreateStatusWind > owA@16'</EM=3D > ></A><BR><EM>View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x7 > 5):View.cpp=3D > :=3D20 > undefined reference to `Win::Exception::Exception(std::string =3D > const&,=3D20 > std::string const&, unsigned=3D20 > long)'<BR>View.o(.text$_ZN3Win12ControlMakerC2EPKcP6HWND__i+0x > 25):View.cp=3D > p:=3D20 > undefined reference to `Win::ChildMaker::ChildMaker(char const*, =3D > Win::Dow,=3D20 > int)'</EM></FONT></DIV> > <DIV><EM></EM> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM>mingw32-make.exe: *** =3D > [PortCalk.exe] Error=3D20 > 1</EM></FONT></DIV> > <DIV><EM></EM> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM>Execution = terminated<BR></DIV> > <DIV> </DIV> > <DIV> </DIV> > <DIV><BR>---<BR>Outgoing mail is certified Virus=20 > Free.<BR>Checked by AVG =3D >=20 > anti-virus system (<A=3D20 > href=3D3D"http://www.grisoft.com">http://www.grisoft.com</A>).<B > R>Version: =3D > 6.0.389 /=3D20 > Virus Database: 220 - Release Date: =3D > 16/09/2002</EM></FONT></DIV></BODY></HTML> >=20 > ------=3D_NextPart_000_0054_01C26339.C64A9EE0-- >=20 >=20 >=20 > --__--__-- >=20 > Message: 7 > From: "Eric Richards" <e.r...@pa...> > To: <dev...@li...> > Date: Tue, 24 Sep 2002 06:52:34 +1200 > Subject: [Dev-C++] Still can not get update to work >=20 > it just freezes up=20 >=20 > From Eric >=20 > NO ATTACHMENT WAS SENT WITH THIS EMAIL, > IF THERE IS ONE, IT IS A UNDETECTED VIRUS, PLEASE LET ME KNOW.. >=20 > -----Original Message----- > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/02 >=20 >=20 >=20 > --__--__-- >=20 > Message: 8 > To: <dev...@li...> > Subject: Re: [Dev-C++] Confusing Linker Error > From: Elizabeth Barham <sog...@ya...> > Date: 23 Sep 2002 13:58:32 -0500 >=20 > "Napoleon Ahiable" <nah...@so...> writes: >=20 > > g++.exe Calc.o Commander.o Ctrl.o FunTab.o LoadDlg.o Main.o=20 > MenuTable.o =3D > > Nodes.o Output.o Parser.o SaveDlg.o Scanner.o Serial.o=20 > Store.o SymTab.o =3D > > View.o AboutDlg.o PortCalck.res -o "PortCalk.exe" -L"C:\MinGW\lib" = =3D > > -L"C:\Projects\WinLib" -I"C:\MinGW\include" =20 > -I"C:\MinGW\include\c++" =3D > > -I"C:\MinGW\include" -I"C:\Projects\WinLib" -D_WIN32_IE=3D3D0x0300 = =3D > > -DSTRICT -s -mwindows >=20 > This is a wild guess, but if WinLib.a is in C:\Projects\WinLib, then > shouldn't it be on the command line? Or, better yet, could it be > renamed "libWinLib.a" and then -lWinLib added onto the command line > after the -L"C:\Projects\WinLib" ? Especially if that is where all of > your undefined symbols are coming from. >=20 > Elizabeth >=20 >=20 >=20 > --__--__-- >=20 > _______________________________________________ > 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 >=20 >=20 > End of Dev-cpp-users Digest >=20 ------------------------------------------------------- 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: Matthews <dem...@uw...> - 2002-09-24 12:16:26
|
Thanks for the linker information. clrscr() along with textcolor() and
gotoxy() work fine now. :)
Code snippet: This happened several times with me, so I'm quite interested
to find out the reason why.
sample code:
void log_in(void)
{
clrscr();
printf("User login: ");
char login[80];
gets(login);
int c;
c = atoi(login);
if (c != 0 || c != 1 || c != 2) {
clrscr();
printf("Invalid login.");
for (;;) {
if (kbhit()) break;
}
}
}
And it would give me a parsing error at "char login[80]" every time.
What's up?
At 12:30 PM 23/09/2002 +0200, you wrote:
>Hi Matthews
>
>>I recently downloaded the new dev-c++ beta version, and am a bit stuck.
>>Looking through the included header files, I found a prototype for the
>>clrscr() function in conio.h, but trying to use clrscr() resulted in a
>>linker error. What header do I need to include to use clrscr()?
>
>You don't need more headers. You just have to link with libconio.a
>
>Linker errors are not related with missing ".h" headers. In this case, you
get *compiler* errors, not
>*linker* ones.
>
>Project options/Linker options : -lconio
>
>>Also, I believe dev-c++ to be C99 compatible, but how come when I tried to
>>declare "char choice" halfway down a function, it gave me a parsing error?
>>C99 was supposed to allow variable declarations anywhere in the code.
>
>No problem here. Can you make a cut&paste of the snippet that causes you
the problem ?
>
>Kind regards
>
>--
>Seb
>
>
>
>
>
>-------------------------------------------------------
>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-09-24 11:26:10
|
The truth is that I didn't found any online tutorial which can be enough = for even understand the winapi reference, at the end, if you want learn w= indows, you'll need a book. The most recommended is "programming windows"= by Charles Petzold, and it is else many recommended "win32 programming" = by Brent E. Rector and Joseph Newcomer. I read the last and saw the TOC of the first. The latter was fine to me, now I achieve to write some experiments (I'm s= till waiting for my serious windows program) more complicated that a simp= le edit text control, and now I understand the winapi reference. It's a v= ery good book, it is worthy to buy it. Although it has a couple of things= that I must point: their c code use C++ comments, that makes mingw report a lot of errors, s= o compile them as C++ projects. Another point is that their C++ examples = use MFC, but I guess this is a problem you'll find everywhere. Rector's book is very deep, useful for beginners and a good book for use = as reference and has some introductory chapters for threads and synchroni= zation. Petzold's is more "primitive", I mean, it treats more elementary matters = and seems to be not so complete as Rector's book. I found a claimed Petzold's book online in chm format you can download, i= t's not giant download, you can get it in less than 5 minutes, I forgot t= he url, search it. I got it, but I have not read it yet, and everything i= n it is treated in Rector's. For online tutorials, I find good for introduction two of them: the Forge= r's at http://winprog.org (or it was .com?), and the one from reliable. F= orger's is written as C, and reliable as C++. Since the latter is deficie= nt in some points the first has good, and the second let you see some thi= ngs about c++ with windows, I'd recommend you read the forger's and then the one from reliab= le. (http://www.relisoft.com ?) Ext...@no... escribi=F3: > Hi. > > I have received a small dev-cpp c++ windows program which is basically = just an example on how to create a menu in windows. It works nice and now= I have an urge for more. Do any of guys know some good online stuff whic= h can help a c++ programmer with only 6 months of experience to create wi= ndow applications? > > Best regards Kurt. > > > > -----Original Message----- > > From: ext dev...@li... > > [mailto:dev...@li...] > > Sent: 23 September, 2002 22:00 > > To: dev...@li... > > Subject: Dev-cpp-users digest, Vol 1 #982 - 8 msgs > > > > > > Send Dev-cpp-users mailing list submissions to > > dev...@li... > > > > To subscribe or unsubscribe via the World Wide Web, visit > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > or, via email, send a message with subject or body 'help' to > > dev...@li... > > > > You can reach the person managing the list at > > dev...@li... > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of Dev-cpp-users digest..." > > > > > > Today's Topics: > > > > 1. Re: ANSI problem (Daniel Glenfield) > > 2. Re: clrscr() and c99 compatibility (Carlos > > =3D?iso-8859-1?Q?Garc=3DEDa?=3D del Monte) > > 3. Link OBJ files with a C++ program with Dev-C++ > > (=3D?iso-8859-1?Q?Roberto_E._Mondrag=3DF3n_R._457885?=3D) > > 4. Re: ANSI problem (metalseb) > > 5. Re: resource compilation error (metalseb) > > 6. Confusing Linker Error (Napoleon Ahiable) > > 7. Still can not get update to work (Eric Richards) > > 8. Re: Confusing Linker Error (Elizabeth Barham) > > > > --__--__-- > > > > Message: 1 > > From: "Daniel Glenfield" <sp...@ho...> > > To: dev...@li... > > Subject: Re: [Dev-C++] ANSI problem > > Date: Mon, 23 Sep 2002 15:14:01 +0100 > > > > Ah I remember this with HBRUSHes, you need to add the type or > > something...I > > can't remember what exactly it was though. Has this jogged > > anyone's memory? > > > > > > >From: "Vlada Djurovic" <dj...@im...> > > >To: "DevC++ help" <dev...@li...> > > >Subject: [Dev-C++] ANSI problem > > >Date: Mon, 23 Sep 2002 14:44:16 +0200 > > > > > >Hi, everybody > > >I wrote this function: > > > > > >void CLine::Draw(HDC hdc) > > >{ > > > HPEN hPen,hOldPen; > > > hPen=3DCreatePen(PS_SOLID,m_iWidth,m_crColor); > > > hOldPen=3DSelectObject(hdc,hPen); > > //this is where I > > >get error message > > > > > > MoveToEx(hdc,m_ptFrom.x,m_ptFrom.y,NULL); > > > LineTo(hdc,m_ptTo.x,m_ptTo.y); > > > SelectObject(hdc,hOldPen); > > > DeleteObject(hPen); > > > DeleteObject(hOldPen); > > >} > > > > > >When I try to compile it, I get the message "ANSI C++ > > forbids implicit > > >conversion from `void *' in assignment" in commented line. > > What is the > > >problem? > > > > > > > > > > _________________________________________________________________ > > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > > > > > > --__--__-- > > > > Message: 2 > > Date: Mon, 23 Sep 2002 17:13:11 +0200 > > From: Carlos =3D?iso-8859-1?Q?Garc=3DEDa?=3D del Monte <cg...@wo...> > > To: dev-cpp-users-list <dev...@li...> > > Subject: Re: [Dev-C++] clrscr() and c99 compatibility > > > > conio are files that have change between releases of mingw, > > first I got > > perfect use of its function, then I upgraded to mingw1.1 and it lost > > functionality, and now in mingw2.0.0 it seems fewer (just now > > I see at it=3D > > and > > it no defines clrscr), it has only the .h file, and it lost > > the .c file, =3D > > so I > > copied the two files from the conio which came with Dev-C++ > > 4.0 and I use > > them. > > > > Matthews escribi=3DF3: > > > > > I recently downloaded the new dev-c++ beta version, and am > > a bit stuck. > > > Looking through the included header files, I found a > > prototype for the > > > clrscr() function in conio.h, but trying to use clrscr() > > resulted in a > > > linker error. What header do I need to include to use clrscr()? > > > > > > Also, I believe dev-c++ to be C99 compatible, but how come > > when I tried=3D > > to > > > declare "char choice" halfway down a function, it gave me a > > parsing err=3D > > or? > > > C99 was supposed to allow variable declarations anywhere in > > the code. > > > > > > Thanks. > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > --__--__-- > > > > Message: 3 > > From: =3D?iso-8859-1?Q?Roberto_E._Mondrag=3DF3n_R._457885?=3D > > <004...@ac...> > > To: <dev...@li...> > > Date: Mon, 23 Sep 2002 12:25:48 -0500 > > Subject: [Dev-C++] Link OBJ files with a C++ program with Dev-C++ > > > > This is a multi-part message in MIME format. > > > > ------=3D_NextPart_000_001E_01C262FC.59795640 > > Content-Type: text/plain; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > How can I link a OBJ file (from a ASM program) with a C++ > > program using =3D > > Dev-C++? > > > > Thanks! > > ------=3D_NextPart_000_001E_01C262FC.59795640 > > Content-Type: text/html; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > > <HTML><HEAD> > > <META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D > > charset=3D3Diso-8859-1"> > > <META content=3D3D"MSHTML 6.00.2800.1106" name=3D3DGENERATOR> > > <STYLE></STYLE> > > </HEAD> > > <BODY bgColor=3D3D#ffffff> > > <DIV><FONT face=3D3DArial size=3D3D2>How can I link a OBJ file > > (from a ASM =3D > > program) with=3D20 > > a C++ program using Dev-C++?</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Thanks!</FONT></DIV></BODY></HTM= L> > > > > ------=3D_NextPart_000_001E_01C262FC.59795640-- > > > > > > > > --__--__-- > > > > Message: 4 > > Date: Mon, 23 Sep 2002 19:35:12 +0200 > > To: DevC++ help <dev...@li...> > > From: metalseb <met...@fr...> > > Subject: Re: [Dev-C++] ANSI problem > > Reply-To: met...@fr... > > > > > hOldPen=3DSelectObject(hdc,hPen); > > //this is where I > > > get error message > > > > Well, SelectObject returns an HGIOBJ pointer, just cast the > > return value like this : > > > > hOldPen=3D(HPEN)SelectObject(hdc,hPen); > > > > And it should compile OK. Note that some compilers do the > > cast by themselves. This is not the > > case with MingW. And I think this is *really* better. > > > > -- > > Seb > > > > > > > > --__--__-- > > > > Message: 5 > > Date: Mon, 23 Sep 2002 19:35:15 +0200 > > To: dev...@li... > > From: metalseb <met...@fr...> > > Subject: Re: [Dev-C++] resource compilation error > > Reply-To: met...@fr... > > > > > windres.exe: Script.rc:12: parse error > > > > line 12 says : > > > > > CTEXT "Bartosz Milewski =A9 2001",IDC_STATIC,10,33,121,14 > > > > Just replace IDC_STATIC with -1 and it should compile without > > problems. Dunno why > > IDC_STATIC is not recognised by Windres, even since > > winresrc.h is included. > > > > Tales and mysteries of Windows C programming... > > > > -- > > Seb > > > > > > > > --__--__-- > > > > Message: 6 > > From: "Napoleon Ahiable" <nah...@so...> > > To: <dev...@li...> > > Date: Mon, 23 Sep 2002 19:45:31 +0100 > > Subject: [Dev-C++] Confusing Linker Error > > > > This is a multi-part message in MIME format. > > > > ------=3D_NextPart_000_0054_01C26339.C64A9EE0 > > Content-Type: text/plain; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > Hello, > > > > I'm trying to build a sample program from "C++ In Action" I > > have all the =3D > > general files in a Library and compiled all to create > > WinLib.a. I then =3D > > created the main project with the rest of the files. Under =3D > > >Project>Options I included the Path to my Library under both > > Library =3D > > Directories and Include Directories. When I compile the > > program this is =3D > > the error that I get. I'll appreaciate an explanation and a solution = =3D > > please. Thanks. > > > > Napoleon. > > > > Building Makefile: "C:\Projects\PortCalck\Makefile.win" > > Executing make... > > mingw32-make.exe -f "C:\Projects\PortCalck\Makefile.win" all > > windres.exe -i PORTCA~1.RC -I rc -o PortCalck.res -O coff=3D20 > > > > g++.exe Calc.o Commander.o Ctrl.o FunTab.o LoadDlg.o Main.o > > MenuTable.o =3D > > Nodes.o Output.o Parser.o SaveDlg.o Scanner.o Serial.o > > Store.o SymTab.o =3D > > View.o AboutDlg.o PortCalck.res -o "PortCalk.exe" -L"C:\MinGW\lib" =3D > > -L"C:\Projects\WinLib" -I"C:\MinGW\include" > > -I"C:\MinGW\include\c++" =3D > > -I"C:\MinGW\include" -I"C:\Projects\WinLib" -D_WIN32_IE=3D3D0x0300 = =3D > > -DSTRICT -s -mwindows > > > > Commander.o(.text$_ZN6Dialog5ModalC1EN3Win3DowEiRNS_15ModalCon > > trollerE+0x=3D > > 11):Commander.cpp: undefined reference to =3D > > `_ZN6Dialog9ModalProcEP6HWND__jjl@16' > > Ctrl.o(.text$_ZN4View8GetInputEv+0x16):Ctrl.cpp: undefined > > reference to =3D > > `Win::Edit::GetText() const' > > > > Ctrl.o(.text$_ZN4View12RefreshPopupEP7HMENU__i+0x17):Ctrl.cpp: > > undefined =3D > > reference to `Menu::DropDown::RefreshPopup(HMENU__*, int)' > > Ctrl.o(.text$_ZNK3Cmd10VectorExecI9CommanderE4TestEPKc+0x2e):C > > trl.cpp: =3D > > undefined reference to `Cmd::Vector::CmdToId(char const*) const' > > LoadDlg.o(.text$_ZN3Win7ListBox13ListDirectoryENS_3DowEPcij+0x > > 82):LoadDlg=3D > > .cpp: undefined reference to `Win::Exception::Exception(std::string =3D > > const&, std::string const&, unsigned long)' > > Main.o(.text+0x72):Main.cpp: undefined reference to =3D > > `Win::ClassMaker::ClassMaker(char const*, HINSTANCE__*)' > > Main.o(.text+0x83):Main.cpp: undefined reference to =3D > > `Win::ClassMaker::SetIcons(int)' > > Main.o(.text+0xab):Main.cpp: undefined reference to =3D > > `Win::Maker::Maker(char const*, HINSTANCE__*)' > > > > Main.o(.text+0xfa):Main.cpp: undefined reference to =3D > > `Win::Maker::Create(Win::Controller&, char const*)' > > Main.o(.text+0x143):Main.cpp: undefined reference to =3D > > `Win::MsgPrepro::Pump()' > > Main.o(.text$_ZN9SmallIconD1Ev+0xd):Main.cpp: undefined reference to = =3D > > `Icon::~Icon()' > > Main.o(.text$_ZN7StdIconD1Ev+0xd):Main.cpp: undefined reference to =3D > > `Icon::~Icon()' > > SaveDlg.o(.text+0x7b):SaveDlg.cpp: undefined reference to =3D > > `Win::Edit::GetText() const' > > SymTab.o(.text+0x1da):SymTab.cpp: undefined reference to =3D > > `Win::Exception::Exception(std::string const&, std::string const&, =3D > > unsigned long)' > > View.o(.text+0x51):View.cpp: undefined reference to =3D > > `Menu::DropDown::DropDown(Menu::BarItem const*, Cmd::Vector&)' > > View.o(.text+0x12d):View.cpp: undefined reference to =3D > > `Win::ChildMaker::Create(char const*)' > > View.o(.text+0x178):View.cpp: undefined reference to =3D > > `Win::ChildMaker::Create(char const*)' > > View.o(.text+0x1c3):View.cpp: undefined reference to =3D > > `Win::ChildMaker::Create(char const*)' > > View.o(.text+0x1ec):View.cpp: undefined reference to =3D > > `Win::Dow::SubClass(Win::SubController*)' > > View.o(.text+0x239):View.cpp: undefined reference to =3D > > `Win::ChildMaker::Create(char const*)' > > View.o(.text+0x27b):View.cpp: undefined reference to =3D > > `Font::Stock::GetTextSize(int&, int&)' > > View.o(.text+0x429):View.cpp: undefined reference to =3D > > `Menu::DropDown::DropDown(Menu::BarItem const*, Cmd::Vector&)' > > View.o(.text+0x505):View.cpp: undefined reference to =3D > > `Win::ChildMaker::Create(char const*)' > > View.o(.text+0x550):View.cpp: undefined reference to =3D > > `Win::ChildMaker::Create(char const*)' > > View.o(.text+0x59b):View.cpp: undefined reference to =3D > > `Win::ChildMaker::Create(char const*)' > > View.o(.text+0x5c4):View.cpp: undefined reference to =3D > > `Win::Dow::SubClass(Win::SubController*)' > > View.o(.text+0x611):View.cpp: undefined reference to =3D > > `Win::ChildMaker::Create(char const*)' > > View.o(.text+0x653):View.cpp: undefined reference to =3D > > `Font::Stock::GetTextSize(int&, int&)' > > View.o(.text+0x7d3):View.cpp: undefined reference to =3D > > `Menu::DropDown::AttachToWindow(HWND__*)' > > View.o(.text+0x952):View.cpp: undefined reference to =3D > > `Win::Edit::Clear()' > > View.o(.text$_ZN3Win14StatusBarMakerC1EP6HWND__i+0x33):View.cpp: =3D > > undefined reference to `InitCommonControlsEx@4' > > View.o(.text$_ZN3Win14StatusBarMakerC1EP6HWND__i+0x87):View.cpp: =3D > > undefined reference to `Win::Exception::Exception(std::string > > const&, =3D > > std::string const&, unsigned long)' > > View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x1f):View.cpp: > > undefined =3D > > reference to `CreateStatusWindowA@16' > > View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x75):View.cpp: > > undefined =3D > > reference to `Win::Exception::Exception(std::string const&, > > std::string =3D > > const&, unsigned long)' > > View.o(.text$_ZN3Win12ControlMakerC2EPKcP6HWND__i+0x25):View.cpp: =3D > > undefined reference to `Win::ChildMaker::ChildMaker(char const*, =3D > > Win::Dow, int)' > > > > mingw32-make.exe: *** [PortCalk.exe] Error 1 > > > > Execution terminated > > > > > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.389 / Virus Database: 220 - Release Date: 16/09/2002 > > ------=3D_NextPart_000_0054_01C26339.C64A9EE0 > > Content-Type: text/html; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > > <HTML><HEAD> > > <META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D > > charset=3D3Diso-8859-1"> > > <META content=3D3D"MSHTML 6.00.2800.1106" name=3D3DGENERATOR> > > <STYLE></STYLE> > > </HEAD> > > <BODY bgColor=3D3D#ffffff> > > <DIV><FONT face=3D3DArial size=3D3D2><STRONG>Hello,</STRONG></FONT></= DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><STRONG></STRONG></FONT> </= DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><STRONG>I'm trying to build > > a sample =3D > > program from=3D20 > > "C++ In Action" I have all the general files in a Library and > > compiled =3D > > all to=3D20 > > create WinLib.a. I then created the main project with the > > rest of the =3D > > files.=3D20 > > Under >Project>Options I included the Path to my Library under = =3D > > both=3D20 > > Library Directories and Include Directories. When I compile > > the program =3D > > this is=3D20 > > the error that I get. I'll appreaciate an explanation and a solution = =3D > > please.=3D20 > > Thanks.</STRONG></FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><STRONG></STRONG></FONT> </= DIV> > > <DIV><FONT face=3D3DArial > > size=3D3D2><STRONG>Napoleon.</STRONG></FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><EM>Building Makefile:=3D20 > > "C:\Projects\PortCalck\Makefile.win"<BR>Executing =3D20 > > make...<BR>mingw32-make.exe -f "C:\Projects\PortCalck\Makefile.win"=3D= 20 > > all<BR>windres.exe -i PORTCA~1.RC -I rc -o PortCalck.res -O coff=3D20 > > </EM></FONT></DIV> > > <DIV><EM></EM> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><EM>g++.exe Calc.o > > Commander.o Ctrl.o =3D > > FunTab.o=3D20 > > LoadDlg.o Main.o MenuTable.o Nodes.o Output.o Parser.o SaveDlg.o =3D > > Scanner.o=3D20 > > Serial.o Store.o SymTab.o View.o AboutDlg.o PortCalck.res -o =3D > > "PortCalk.exe"=3D20 > > -L"C:\MinGW\lib" -<STRONG>L"C:\Projects\WinLib"</STRONG> =3D20 > > -I"C:\MinGW\include" -I"C:\MinGW\include\c++" =3D20 > > -I"C:\MinGW\include" > > -<STRONG>I"C:\Projects\WinLib"</STRONG> =3D > > > > -D_WIN32_IE=3D3D0x0300 -DSTRICT -s -mwindows</EM></FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><EM></EM></FONT> </DIV> > > <DIV><FONT face=3D3DArial=3D20 > > size=3D3D2><EM>Commander.o(.text$_ZN6Dialog5ModalC1EN3Win3DowEiR > > NS_15ModalC=3D > > ontrollerE+0x11):Commander.cpp:=3D20 > > undefined reference to </EM><A=3D20 > > href=3D3D"mailto:`_ZN6Dialog9ModalProcEP6HWND__jjl@16'"><EM>`_ZN > > 6Dialog9Mod=3D > > alProcEP6HWND__jjl@16'</EM></A><BR><EM>Ctrl.o(.text$_ZN4View8G > > etInputEv+0=3D > > x16):Ctrl.cpp:=3D20 > > undefined reference to `Win::Edit::GetText() const'</EM></FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><EM></EM></FONT> </DIV> > > <DIV><FONT face=3D3DArial=3D20 > > size=3D3D2><EM>Ctrl.o(.text$_ZN4View12RefreshPopupEP7HMENU__i+0x > > 17):Ctrl.cp=3D > > p:=3D20 > > undefined reference to `Menu::DropDown::RefreshPopup(HMENU__*,=3D20 > > int)'<BR>Ctrl.o(.text$_ZNK3Cmd10VectorExecI9CommanderE4TestEPK > > c+0x2e):Ctr=3D > > l.cpp:=3D20 > > undefined reference to `Cmd::Vector::CmdToId(char const*)=3D20 > > const'<BR>LoadDlg.o(.text$_ZN3Win7ListBox13ListDirectoryENS_3D > > owEPcij+0x8=3D > > 2):LoadDlg.cpp:=3D20 > > undefined reference to `Win::Exception::Exception(std::string =3D > > const&,=3D20 > > std::string const&, unsigned > > long)'<BR>Main.o(.text+0x72):Main.cpp:=3D20 > > undefined reference to `Win::ClassMaker::ClassMaker(char const*,=3D20 > > HINSTANCE__*)'<BR>Main.o(.text+0x83):Main.cpp: undefined > > reference to=3D20 > > `Win::ClassMaker::SetIcons(int)'<BR>Main.o(.text+0xab):Main.cpp: =3D > > undefined=3D20 > > reference to `Win::Maker::Maker(char const*, =3D > > HINSTANCE__*)'</EM></FONT></DIV> > > <DIV><EM></EM> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><EM>Main.o(.text+0xfa):Main.cpp:= =3D > > undefined=3D20 > > reference to `Win::Maker::Create(Win::Controller&, char=3D20 > > const*)'<BR>Main.o(.text+0x143):Main.cpp: undefined reference to=3D20 > > `Win::MsgPrepro::Pump()'<BR>Main.o(.text$_ZN9SmallIconD1Ev+0xd > > ):Main.cpp:=3D > > =3D20 > > undefined reference to=3D20 > > `Icon::~Icon()'<BR>Main.o(.text$_ZN7StdIconD1Ev+0xd):Main.cpp: > > undefined =3D > > > > reference to `Icon::~Icon()'<BR>SaveDlg.o(.text+0x7b):SaveDlg.cpp: =3D > > undefined=3D20 > > reference to `Win::Edit::GetText() =3D > > const'<BR>SymTab.o(.text+0x1da):SymTab.cpp:=3D20 > > undefined reference to `Win::Exception::Exception(std::string =3D > > const&,=3D20 > > std::string const&, unsigned > > long)'<BR>View.o(.text+0x51):View.cpp:=3D20 > > undefined reference to > > `Menu::DropDown::DropDown(Menu::BarItem const*,=3D20 > > Cmd::Vector&)'<BR>View.o(.text+0x12d):View.cpp: undefined > > reference =3D > > to=3D20 > > `Win::ChildMaker::Create(char > > const*)'<BR>View.o(.text+0x178):View.cpp:=3D20 > > undefined reference to `Win::ChildMaker::Create(char=3D20 > > const*)'<BR>View.o(.text+0x1c3):View.cpp: undefined reference to=3D20 > > `Win::ChildMaker::Create(char > > const*)'<BR>View.o(.text+0x1ec):View.cpp:=3D20 > > undefined reference to=3D20 > > `Win::Dow::SubClass(Win::SubController*)'<BR>View.o(.text+0x23 > > 9):View.cpp=3D > > :=3D20 > > undefined reference to `Win::ChildMaker::Create(char=3D20 > > const*)'<BR>View.o(.text+0x27b):View.cpp: undefined reference to=3D20 > > `Font::Stock::GetTextSize(int&, =3D > > int&)'<BR>View.o(.text+0x429):View.cpp:=3D20 > > undefined reference to > > `Menu::DropDown::DropDown(Menu::BarItem const*,=3D20 > > Cmd::Vector&)'<BR>View.o(.text+0x505):View.cpp: undefined > > reference =3D > > to=3D20 > > `Win::ChildMaker::Create(char > > const*)'<BR>View.o(.text+0x550):View.cpp:=3D20 > > undefined reference to `Win::ChildMaker::Create(char=3D20 > > const*)'<BR>View.o(.text+0x59b):View.cpp: undefined reference to=3D20 > > `Win::ChildMaker::Create(char > > const*)'<BR>View.o(.text+0x5c4):View.cpp:=3D20 > > undefined reference to=3D20 > > `Win::Dow::SubClass(Win::SubController*)'<BR>View.o(.text+0x61 > > 1):View.cpp=3D > > :=3D20 > > undefined reference to `Win::ChildMaker::Create(char=3D20 > > const*)'<BR>View.o(.text+0x653):View.cpp: undefined reference to=3D20 > > `Font::Stock::GetTextSize(int&, =3D > > int&)'<BR>View.o(.text+0x7d3):View.cpp:=3D20 > > undefined reference to=3D20 > > `Menu::DropDown::AttachToWindow(HWND__*)'<BR>View.o(.text+0x95 > > 2):View.cpp=3D > > :=3D20 > > undefined reference to=3D20 > > `Win::Edit::Clear()'<BR>View.o(.text$_ZN3Win14StatusBarMakerC1 > > EP6HWND__i+=3D > > 0x33):View.cpp:=3D20 > > undefined reference to </EM><A=3D20 > > href=3D3D"mailto:`InitCommonControlsEx@4'"><EM>`InitCommonContro > > lsEx@4'</EM=3D > > ></A><BR><EM>View.o(.text$_ZN3Win14StatusBarMakerC1EP6HWND__i+ > > 0x87):View.=3D > > cpp:=3D20 > > undefined reference to `Win::Exception::Exception(std::string =3D > > const&,=3D20 > > std::string const&, unsigned=3D20 > > long)'<BR>View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x1f): > > View.cpp:=3D20 > > undefined reference to </EM><A=3D20 > > href=3D3D"mailto:`CreateStatusWindowA@16'"><EM>`CreateStatusWind > > owA@16'</EM=3D > > ></A><BR><EM>View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x7 > > 5):View.cpp=3D > > :=3D20 > > undefined reference to `Win::Exception::Exception(std::string =3D > > const&,=3D20 > > std::string const&, unsigned=3D20 > > long)'<BR>View.o(.text$_ZN3Win12ControlMakerC2EPKcP6HWND__i+0x > > 25):View.cp=3D > > p:=3D20 > > undefined reference to `Win::ChildMaker::ChildMaker(char const*, =3D > > Win::Dow,=3D20 > > int)'</EM></FONT></DIV> > > <DIV><EM></EM> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><EM>mingw32-make.exe: *** =3D > > [PortCalk.exe] Error=3D20 > > 1</EM></FONT></DIV> > > <DIV><EM></EM> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><EM>Execution terminated<BR></DI= V> > > <DIV> </DIV> > > <DIV> </DIV> > > <DIV><BR>---<BR>Outgoing mail is certified Virus > > Free.<BR>Checked by AVG =3D > > > > anti-virus system (<A=3D20 > > href=3D3D"http://www.grisoft.com">http://www.grisoft.com</A>).<B > > R>Version: =3D > > 6.0.389 /=3D20 > > Virus Database: 220 - Release Date: =3D > > 16/09/2002</EM></FONT></DIV></BODY></HTML> > > > > ------=3D_NextPart_000_0054_01C26339.C64A9EE0-- > > > > > > > > --__--__-- > > > > Message: 7 > > From: "Eric Richards" <e.r...@pa...> > > To: <dev...@li...> > > Date: Tue, 24 Sep 2002 06:52:34 +1200 > > Subject: [Dev-C++] Still can not get update to work > > > > it just freezes up > > > > From Eric > > > > NO ATTACHMENT WAS SENT WITH THIS EMAIL, > > IF THERE IS ONE, IT IS A UNDETECTED VIRUS, PLEASE LET ME KNOW.. > > > > -----Original Message----- > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/02 > > > > > > > > --__--__-- > > > > Message: 8 > > To: <dev...@li...> > > Subject: Re: [Dev-C++] Confusing Linker Error > > From: Elizabeth Barham <sog...@ya...> > > Date: 23 Sep 2002 13:58:32 -0500 > > > > "Napoleon Ahiable" <nah...@so...> writes: > > > > > g++.exe Calc.o Commander.o Ctrl.o FunTab.o LoadDlg.o Main.o > > MenuTable.o =3D > > > Nodes.o Output.o Parser.o SaveDlg.o Scanner.o Serial.o > > Store.o SymTab.o =3D > > > View.o AboutDlg.o PortCalck.res -o "PortCalk.exe" -L"C:\MinGW\lib" = =3D > > > -L"C:\Projects\WinLib" -I"C:\MinGW\include" > > -I"C:\MinGW\include\c++" =3D > > > -I"C:\MinGW\include" -I"C:\Projects\WinLib" -D_WIN32_IE=3D3D0x030= 0 =3D > > > -DSTRICT -s -mwindows > > > > This is a wild guess, but if WinLib.a is in C:\Projects\WinLib, then > > shouldn't it be on the command line? Or, better yet, could it be > > renamed "libWinLib.a" and then -lWinLib added onto the command line > > after the -L"C:\Projects\WinLib" ? Especially if that is where all of > > your undefined symbols are coming from. > > > > Elizabeth > > > > > > > > --__--__-- > > > > _______________________________________________ > > 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 > > > > > > End of Dev-cpp-users Digest > > > > ------------------------------------------------------- > 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: Napoleon A. <nah...@so...> - 2002-09-24 11:25:03
|
Thanks Elizabeth, Is there a special reason why WinLib.a shold be renamed? and after renaming WinLib.a to "libWinLib.a" why is it not used again ? Thanks Napoleon. ----- Original Message ----- From: "Elizabeth Barham" <sog...@ya...> To: <dev...@li...> Sent: Monday, September 23, 2002 7:58 PM Subject: Re: [Dev-C++] Confusing Linker Error > "Napoleon Ahiable" <nah...@so...> writes: > > > g++.exe Calc.o Commander.o Ctrl.o FunTab.o LoadDlg.o Main.o MenuTable.o = > > Nodes.o Output.o Parser.o SaveDlg.o Scanner.o Serial.o Store.o SymTab.o = > > View.o AboutDlg.o PortCalck.res -o "PortCalk.exe" -L"C:\MinGW\lib" = > > -L"C:\Projects\WinLib" -I"C:\MinGW\include" -I"C:\MinGW\include\c++" = > > -I"C:\MinGW\include" -I"C:\Projects\WinLib" -D_WIN32_IE=3D0x0300 = > > -DSTRICT -s -mwindows > > This is a wild guess, but if WinLib.a is in C:\Projects\WinLib, then > shouldn't it be on the command line? Or, better yet, could it be > renamed "libWinLib.a" and then -lWinLib added onto the command line > after the -L"C:\Projects\WinLib" ? Especially if that is where all of > your undefined symbols are coming from. > > Elizabeth --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.389 / Virus Database: 220 - Release Date: 16/09/2002 |
|
From: <Ext...@no...> - 2002-09-24 11:02:19
|
Hi.=20 I have received a small dev-cpp c++ windows program which is basically = just an example on how to create a menu in windows. It works nice and = now I have an urge for more. Do any of guys know some good online stuff = which can help a c++ programmer with only 6 months of experience to = create window applications?=20 Best regards Kurt. =20 > -----Original Message----- > From: ext dev...@li... > [mailto:dev...@li...] > Sent: 23 September, 2002 22:00 > To: dev...@li... > Subject: Dev-cpp-users digest, Vol 1 #982 - 8 msgs >=20 >=20 > Send Dev-cpp-users mailing list submissions to > dev...@li... >=20 > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... >=20 > You can reach the person managing the list at > dev...@li... >=20 > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." >=20 >=20 > Today's Topics: >=20 > 1. Re: ANSI problem (Daniel Glenfield) > 2. Re: clrscr() and c99 compatibility (Carlos=20 > =3D?iso-8859-1?Q?Garc=3DEDa?=3D del Monte) > 3. Link OBJ files with a C++ program with Dev-C++=20 > (=3D?iso-8859-1?Q?Roberto_E._Mondrag=3DF3n_R._457885?=3D) > 4. Re: ANSI problem (metalseb) > 5. Re: resource compilation error (metalseb) > 6. Confusing Linker Error (Napoleon Ahiable) > 7. Still can not get update to work (Eric Richards) > 8. Re: Confusing Linker Error (Elizabeth Barham) >=20 > --__--__-- >=20 > Message: 1 > From: "Daniel Glenfield" <sp...@ho...> > To: dev...@li... > Subject: Re: [Dev-C++] ANSI problem > Date: Mon, 23 Sep 2002 15:14:01 +0100 >=20 > Ah I remember this with HBRUSHes, you need to add the type or=20 > something...I=20 > can't remember what exactly it was though. Has this jogged=20 > anyone's memory? >=20 >=20 > >From: "Vlada Djurovic" <dj...@im...> > >To: "DevC++ help" <dev...@li...> > >Subject: [Dev-C++] ANSI problem > >Date: Mon, 23 Sep 2002 14:44:16 +0200 > > > >Hi, everybody > >I wrote this function: > > > >void CLine::Draw(HDC hdc) > >{ > > HPEN hPen,hOldPen; > > hPen=3DCreatePen(PS_SOLID,m_iWidth,m_crColor); > > hOldPen=3DSelectObject(hdc,hPen); =20 > //this is where I > >get error message > > > > MoveToEx(hdc,m_ptFrom.x,m_ptFrom.y,NULL); > > LineTo(hdc,m_ptTo.x,m_ptTo.y); > > SelectObject(hdc,hOldPen); > > DeleteObject(hPen); > > DeleteObject(hOldPen); > >} > > > >When I try to compile it, I get the message "ANSI C++=20 > forbids implicit > >conversion from `void *' in assignment" in commented line.=20 > What is the > >problem? >=20 >=20 >=20 >=20 > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com >=20 >=20 >=20 > --__--__-- >=20 > Message: 2 > Date: Mon, 23 Sep 2002 17:13:11 +0200 > From: Carlos =3D?iso-8859-1?Q?Garc=3DEDa?=3D del Monte <cg...@wo...> > To: dev-cpp-users-list <dev...@li...> > Subject: Re: [Dev-C++] clrscr() and c99 compatibility >=20 > conio are files that have change between releases of mingw,=20 > first I got > perfect use of its function, then I upgraded to mingw1.1 and it lost > functionality, and now in mingw2.0.0 it seems fewer (just now=20 > I see at it=3D > and > it no defines clrscr), it has only the .h file, and it lost=20 > the .c file, =3D > so I > copied the two files from the conio which came with Dev-C++=20 > 4.0 and I use > them. >=20 > Matthews escribi=3DF3: >=20 > > I recently downloaded the new dev-c++ beta version, and am=20 > a bit stuck. > > Looking through the included header files, I found a=20 > prototype for the > > clrscr() function in conio.h, but trying to use clrscr()=20 > resulted in a > > linker error. What header do I need to include to use clrscr()? > > > > Also, I believe dev-c++ to be C99 compatible, but how come=20 > when I tried=3D > to > > declare "char choice" halfway down a function, it gave me a=20 > parsing err=3D > or? > > C99 was supposed to allow variable declarations anywhere in=20 > the code. > > > > Thanks. > > > > ------------------------------------------------------- > > 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 >=20 >=20 >=20 > --__--__-- >=20 > Message: 3 > From: =3D?iso-8859-1?Q?Roberto_E._Mondrag=3DF3n_R._457885?=3D=20 > <004...@ac...> > To: <dev...@li...> > Date: Mon, 23 Sep 2002 12:25:48 -0500 > Subject: [Dev-C++] Link OBJ files with a C++ program with Dev-C++ >=20 > This is a multi-part message in MIME format. >=20 > ------=3D_NextPart_000_001E_01C262FC.59795640 > Content-Type: text/plain; > charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable >=20 > How can I link a OBJ file (from a ASM program) with a C++=20 > program using =3D > Dev-C++? >=20 > Thanks! > ------=3D_NextPart_000_001E_01C262FC.59795640 > Content-Type: text/html; > charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable >=20 > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D > charset=3D3Diso-8859-1"> > <META content=3D3D"MSHTML 6.00.2800.1106" name=3D3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D3D#ffffff> > <DIV><FONT face=3D3DArial size=3D3D2>How can I link a OBJ file=20 > (from a ASM =3D > program) with=3D20 > a C++ program using Dev-C++?</FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > <DIV><FONT face=3D3DArial = size=3D3D2>Thanks!</FONT></DIV></BODY></HTML> >=20 > ------=3D_NextPart_000_001E_01C262FC.59795640-- >=20 >=20 >=20 > --__--__-- >=20 > Message: 4 > Date: Mon, 23 Sep 2002 19:35:12 +0200 > To: DevC++ help <dev...@li...> > From: metalseb <met...@fr...> > Subject: Re: [Dev-C++] ANSI problem > Reply-To: met...@fr... >=20 > > hOldPen=3DSelectObject(hdc,hPen); =20 > //this is where I > > get error message >=20 > Well, SelectObject returns an HGIOBJ pointer, just cast the=20 > return value like this : >=20 > hOldPen=3D(HPEN)SelectObject(hdc,hPen); =20 >=20 > And it should compile OK. Note that some compilers do the=20 > cast by themselves. This is not the=20 > case with MingW. And I think this is *really* better. >=20 > -- > Seb >=20 >=20 >=20 > --__--__-- >=20 > Message: 5 > Date: Mon, 23 Sep 2002 19:35:15 +0200 > To: dev...@li... > From: metalseb <met...@fr...> > Subject: Re: [Dev-C++] resource compilation error > Reply-To: met...@fr... >=20 > > windres.exe: Script.rc:12: parse error >=20 > line 12 says : >=20 > > CTEXT "Bartosz Milewski =A9 2001",IDC_STATIC,10,33,121,14 >=20 > Just replace IDC_STATIC with -1 and it should compile without=20 > problems. Dunno why=20 > IDC_STATIC is not recognised by Windres, even since=20 > winresrc.h is included. >=20 > Tales and mysteries of Windows C programming... >=20 > -- > Seb >=20 >=20 >=20 > --__--__-- >=20 > Message: 6 > From: "Napoleon Ahiable" <nah...@so...> > To: <dev...@li...> > Date: Mon, 23 Sep 2002 19:45:31 +0100 > Subject: [Dev-C++] Confusing Linker Error >=20 > This is a multi-part message in MIME format. >=20 > ------=3D_NextPart_000_0054_01C26339.C64A9EE0 > Content-Type: text/plain; > charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable >=20 > Hello, >=20 > I'm trying to build a sample program from "C++ In Action" I=20 > have all the =3D > general files in a Library and compiled all to create=20 > WinLib.a. I then =3D > created the main project with the rest of the files. Under =3D > >Project>Options I included the Path to my Library under both=20 > Library =3D > Directories and Include Directories. When I compile the=20 > program this is =3D > the error that I get. I'll appreaciate an explanation and a solution = =3D > please. Thanks. >=20 > Napoleon. >=20 > Building Makefile: "C:\Projects\PortCalck\Makefile.win" > Executing make... > mingw32-make.exe -f "C:\Projects\PortCalck\Makefile.win" all > windres.exe -i PORTCA~1.RC -I rc -o PortCalck.res -O coff=3D20 >=20 > g++.exe Calc.o Commander.o Ctrl.o FunTab.o LoadDlg.o Main.o=20 > MenuTable.o =3D > Nodes.o Output.o Parser.o SaveDlg.o Scanner.o Serial.o=20 > Store.o SymTab.o =3D > View.o AboutDlg.o PortCalck.res -o "PortCalk.exe" -L"C:\MinGW\lib" =3D > -L"C:\Projects\WinLib" -I"C:\MinGW\include" =20 > -I"C:\MinGW\include\c++" =3D > -I"C:\MinGW\include" -I"C:\Projects\WinLib" -D_WIN32_IE=3D3D0x0300 = =3D > -DSTRICT -s -mwindows >=20 > Commander.o(.text$_ZN6Dialog5ModalC1EN3Win3DowEiRNS_15ModalCon > trollerE+0x=3D > 11):Commander.cpp: undefined reference to =3D > `_ZN6Dialog9ModalProcEP6HWND__jjl@16' > Ctrl.o(.text$_ZN4View8GetInputEv+0x16):Ctrl.cpp: undefined=20 > reference to =3D > `Win::Edit::GetText() const' >=20 > Ctrl.o(.text$_ZN4View12RefreshPopupEP7HMENU__i+0x17):Ctrl.cpp: > undefined =3D > reference to `Menu::DropDown::RefreshPopup(HMENU__*, int)' > Ctrl.o(.text$_ZNK3Cmd10VectorExecI9CommanderE4TestEPKc+0x2e):C > trl.cpp: =3D > undefined reference to `Cmd::Vector::CmdToId(char const*) const' > LoadDlg.o(.text$_ZN3Win7ListBox13ListDirectoryENS_3DowEPcij+0x > 82):LoadDlg=3D > .cpp: undefined reference to `Win::Exception::Exception(std::string = =3D > const&, std::string const&, unsigned long)' > Main.o(.text+0x72):Main.cpp: undefined reference to =3D > `Win::ClassMaker::ClassMaker(char const*, HINSTANCE__*)' > Main.o(.text+0x83):Main.cpp: undefined reference to =3D > `Win::ClassMaker::SetIcons(int)' > Main.o(.text+0xab):Main.cpp: undefined reference to =3D > `Win::Maker::Maker(char const*, HINSTANCE__*)' >=20 > Main.o(.text+0xfa):Main.cpp: undefined reference to =3D > `Win::Maker::Create(Win::Controller&, char const*)' > Main.o(.text+0x143):Main.cpp: undefined reference to =3D > `Win::MsgPrepro::Pump()' > Main.o(.text$_ZN9SmallIconD1Ev+0xd):Main.cpp: undefined reference to = =3D > `Icon::~Icon()' > Main.o(.text$_ZN7StdIconD1Ev+0xd):Main.cpp: undefined reference to =3D > `Icon::~Icon()' > SaveDlg.o(.text+0x7b):SaveDlg.cpp: undefined reference to =3D > `Win::Edit::GetText() const' > SymTab.o(.text+0x1da):SymTab.cpp: undefined reference to =3D > `Win::Exception::Exception(std::string const&, std::string const&, =3D > unsigned long)' > View.o(.text+0x51):View.cpp: undefined reference to =3D > `Menu::DropDown::DropDown(Menu::BarItem const*, Cmd::Vector&)' > View.o(.text+0x12d):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x178):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x1c3):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x1ec):View.cpp: undefined reference to =3D > `Win::Dow::SubClass(Win::SubController*)' > View.o(.text+0x239):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x27b):View.cpp: undefined reference to =3D > `Font::Stock::GetTextSize(int&, int&)' > View.o(.text+0x429):View.cpp: undefined reference to =3D > `Menu::DropDown::DropDown(Menu::BarItem const*, Cmd::Vector&)' > View.o(.text+0x505):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x550):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x59b):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x5c4):View.cpp: undefined reference to =3D > `Win::Dow::SubClass(Win::SubController*)' > View.o(.text+0x611):View.cpp: undefined reference to =3D > `Win::ChildMaker::Create(char const*)' > View.o(.text+0x653):View.cpp: undefined reference to =3D > `Font::Stock::GetTextSize(int&, int&)' > View.o(.text+0x7d3):View.cpp: undefined reference to =3D > `Menu::DropDown::AttachToWindow(HWND__*)' > View.o(.text+0x952):View.cpp: undefined reference to =3D > `Win::Edit::Clear()' > View.o(.text$_ZN3Win14StatusBarMakerC1EP6HWND__i+0x33):View.cpp: =3D > undefined reference to `InitCommonControlsEx@4' > View.o(.text$_ZN3Win14StatusBarMakerC1EP6HWND__i+0x87):View.cpp: =3D > undefined reference to `Win::Exception::Exception(std::string=20 > const&, =3D > std::string const&, unsigned long)' > View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x1f):View.cpp:=20 > undefined =3D > reference to `CreateStatusWindowA@16' > View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x75):View.cpp:=20 > undefined =3D > reference to `Win::Exception::Exception(std::string const&,=20 > std::string =3D > const&, unsigned long)' > View.o(.text$_ZN3Win12ControlMakerC2EPKcP6HWND__i+0x25):View.cpp: =3D > undefined reference to `Win::ChildMaker::ChildMaker(char const*, =3D > Win::Dow, int)' >=20 > mingw32-make.exe: *** [PortCalk.exe] Error 1 >=20 > Execution terminated >=20 >=20 >=20 >=20 > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.389 / Virus Database: 220 - Release Date: 16/09/2002 > ------=3D_NextPart_000_0054_01C26339.C64A9EE0 > Content-Type: text/html; > charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable >=20 > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D > charset=3D3Diso-8859-1"> > <META content=3D3D"MSHTML 6.00.2800.1106" name=3D3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D3D#ffffff> > <DIV><FONT face=3D3DArial = size=3D3D2><STRONG>Hello,</STRONG></FONT></DIV> > <DIV><FONT face=3D3DArial = size=3D3D2><STRONG></STRONG></FONT> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2><STRONG>I'm trying to build=20 > a sample =3D > program from=3D20 > "C++ In Action" I have all the general files in a Library and=20 > compiled =3D > all to=3D20 > create WinLib.a. I then created the main project with the=20 > rest of the =3D > files.=3D20 > Under >Project>Options I included the Path to my Library under = =3D > both=3D20 > Library Directories and Include Directories. When I compile=20 > the program =3D > this is=3D20 > the error that I get. I'll appreaciate an explanation and a solution = =3D > please.=3D20 > Thanks.</STRONG></FONT></DIV> > <DIV><FONT face=3D3DArial = size=3D3D2><STRONG></STRONG></FONT> </DIV> > <DIV><FONT face=3D3DArial=20 > size=3D3D2><STRONG>Napoleon.</STRONG></FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM>Building Makefile:=3D20 > "C:\Projects\PortCalck\Makefile.win"<BR>Executing =3D20 > make...<BR>mingw32-make.exe -f = "C:\Projects\PortCalck\Makefile.win"=3D20 > all<BR>windres.exe -i PORTCA~1.RC -I rc -o PortCalck.res -O coff=3D20 > </EM></FONT></DIV> > <DIV><EM></EM> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM>g++.exe Calc.o=20 > Commander.o Ctrl.o =3D > FunTab.o=3D20 > LoadDlg.o Main.o MenuTable.o Nodes.o Output.o Parser.o SaveDlg.o =3D > Scanner.o=3D20 > Serial.o Store.o SymTab.o View.o AboutDlg.o PortCalck.res -o =3D > "PortCalk.exe"=3D20 > -L"C:\MinGW\lib" -<STRONG>L"C:\Projects\WinLib"</STRONG> =3D20 > -I"C:\MinGW\include" -I"C:\MinGW\include\c++" =3D20 > -I"C:\MinGW\include" =20 > -<STRONG>I"C:\Projects\WinLib"</STRONG> =3D >=20 > -D_WIN32_IE=3D3D0x0300 -DSTRICT -s -mwindows</EM></FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM></EM></FONT> </DIV> > <DIV><FONT face=3D3DArial=3D20 > size=3D3D2><EM>Commander.o(.text$_ZN6Dialog5ModalC1EN3Win3DowEiR > NS_15ModalC=3D > ontrollerE+0x11):Commander.cpp:=3D20 > undefined reference to </EM><A=3D20 > href=3D3D"mailto:`_ZN6Dialog9ModalProcEP6HWND__jjl@16'"><EM>`_ZN > 6Dialog9Mod=3D > alProcEP6HWND__jjl@16'</EM></A><BR><EM>Ctrl.o(.text$_ZN4View8G > etInputEv+0=3D > x16):Ctrl.cpp:=3D20 > undefined reference to `Win::Edit::GetText() const'</EM></FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM></EM></FONT> </DIV> > <DIV><FONT face=3D3DArial=3D20 > size=3D3D2><EM>Ctrl.o(.text$_ZN4View12RefreshPopupEP7HMENU__i+0x > 17):Ctrl.cp=3D > p:=3D20 > undefined reference to `Menu::DropDown::RefreshPopup(HMENU__*,=3D20 > int)'<BR>Ctrl.o(.text$_ZNK3Cmd10VectorExecI9CommanderE4TestEPK > c+0x2e):Ctr=3D > l.cpp:=3D20 > undefined reference to `Cmd::Vector::CmdToId(char const*)=3D20 > const'<BR>LoadDlg.o(.text$_ZN3Win7ListBox13ListDirectoryENS_3D > owEPcij+0x8=3D > 2):LoadDlg.cpp:=3D20 > undefined reference to `Win::Exception::Exception(std::string =3D > const&,=3D20 > std::string const&, unsigned=20 > long)'<BR>Main.o(.text+0x72):Main.cpp:=3D20 > undefined reference to `Win::ClassMaker::ClassMaker(char const*,=3D20 > HINSTANCE__*)'<BR>Main.o(.text+0x83):Main.cpp: undefined=20 > reference to=3D20 > `Win::ClassMaker::SetIcons(int)'<BR>Main.o(.text+0xab):Main.cpp: =3D > undefined=3D20 > reference to `Win::Maker::Maker(char const*, =3D > HINSTANCE__*)'</EM></FONT></DIV> > <DIV><EM></EM> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM>Main.o(.text+0xfa):Main.cpp: = =3D > undefined=3D20 > reference to `Win::Maker::Create(Win::Controller&, char=3D20 > const*)'<BR>Main.o(.text+0x143):Main.cpp: undefined reference to=3D20 > `Win::MsgPrepro::Pump()'<BR>Main.o(.text$_ZN9SmallIconD1Ev+0xd > ):Main.cpp:=3D > =3D20 > undefined reference to=3D20 > `Icon::~Icon()'<BR>Main.o(.text$_ZN7StdIconD1Ev+0xd):Main.cpp: > undefined =3D >=20 > reference to `Icon::~Icon()'<BR>SaveDlg.o(.text+0x7b):SaveDlg.cpp: =3D > undefined=3D20 > reference to `Win::Edit::GetText() =3D > const'<BR>SymTab.o(.text+0x1da):SymTab.cpp:=3D20 > undefined reference to `Win::Exception::Exception(std::string =3D > const&,=3D20 > std::string const&, unsigned=20 > long)'<BR>View.o(.text+0x51):View.cpp:=3D20 > undefined reference to=20 > `Menu::DropDown::DropDown(Menu::BarItem const*,=3D20 > Cmd::Vector&)'<BR>View.o(.text+0x12d):View.cpp: undefined=20 > reference =3D > to=3D20 > `Win::ChildMaker::Create(char=20 > const*)'<BR>View.o(.text+0x178):View.cpp:=3D20 > undefined reference to `Win::ChildMaker::Create(char=3D20 > const*)'<BR>View.o(.text+0x1c3):View.cpp: undefined reference to=3D20 > `Win::ChildMaker::Create(char=20 > const*)'<BR>View.o(.text+0x1ec):View.cpp:=3D20 > undefined reference to=3D20 > `Win::Dow::SubClass(Win::SubController*)'<BR>View.o(.text+0x23 > 9):View.cpp=3D > :=3D20 > undefined reference to `Win::ChildMaker::Create(char=3D20 > const*)'<BR>View.o(.text+0x27b):View.cpp: undefined reference to=3D20 > `Font::Stock::GetTextSize(int&, =3D > int&)'<BR>View.o(.text+0x429):View.cpp:=3D20 > undefined reference to=20 > `Menu::DropDown::DropDown(Menu::BarItem const*,=3D20 > Cmd::Vector&)'<BR>View.o(.text+0x505):View.cpp: undefined=20 > reference =3D > to=3D20 > `Win::ChildMaker::Create(char=20 > const*)'<BR>View.o(.text+0x550):View.cpp:=3D20 > undefined reference to `Win::ChildMaker::Create(char=3D20 > const*)'<BR>View.o(.text+0x59b):View.cpp: undefined reference to=3D20 > `Win::ChildMaker::Create(char=20 > const*)'<BR>View.o(.text+0x5c4):View.cpp:=3D20 > undefined reference to=3D20 > `Win::Dow::SubClass(Win::SubController*)'<BR>View.o(.text+0x61 > 1):View.cpp=3D > :=3D20 > undefined reference to `Win::ChildMaker::Create(char=3D20 > const*)'<BR>View.o(.text+0x653):View.cpp: undefined reference to=3D20 > `Font::Stock::GetTextSize(int&, =3D > int&)'<BR>View.o(.text+0x7d3):View.cpp:=3D20 > undefined reference to=3D20 > `Menu::DropDown::AttachToWindow(HWND__*)'<BR>View.o(.text+0x95 > 2):View.cpp=3D > :=3D20 > undefined reference to=3D20 > `Win::Edit::Clear()'<BR>View.o(.text$_ZN3Win14StatusBarMakerC1 > EP6HWND__i+=3D > 0x33):View.cpp:=3D20 > undefined reference to </EM><A=3D20 > href=3D3D"mailto:`InitCommonControlsEx@4'"><EM>`InitCommonContro > lsEx@4'</EM=3D > ></A><BR><EM>View.o(.text$_ZN3Win14StatusBarMakerC1EP6HWND__i+ > 0x87):View.=3D > cpp:=3D20 > undefined reference to `Win::Exception::Exception(std::string =3D > const&,=3D20 > std::string const&, unsigned=3D20 > long)'<BR>View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x1f): > View.cpp:=3D20 > undefined reference to </EM><A=3D20 > href=3D3D"mailto:`CreateStatusWindowA@16'"><EM>`CreateStatusWind > owA@16'</EM=3D > ></A><BR><EM>View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x7 > 5):View.cpp=3D > :=3D20 > undefined reference to `Win::Exception::Exception(std::string =3D > const&,=3D20 > std::string const&, unsigned=3D20 > long)'<BR>View.o(.text$_ZN3Win12ControlMakerC2EPKcP6HWND__i+0x > 25):View.cp=3D > p:=3D20 > undefined reference to `Win::ChildMaker::ChildMaker(char const*, =3D > Win::Dow,=3D20 > int)'</EM></FONT></DIV> > <DIV><EM></EM> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM>mingw32-make.exe: *** =3D > [PortCalk.exe] Error=3D20 > 1</EM></FONT></DIV> > <DIV><EM></EM> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2><EM>Execution = terminated<BR></DIV> > <DIV> </DIV> > <DIV> </DIV> > <DIV><BR>---<BR>Outgoing mail is certified Virus=20 > Free.<BR>Checked by AVG =3D >=20 > anti-virus system (<A=3D20 > href=3D3D"http://www.grisoft.com">http://www.grisoft.com</A>).<B > R>Version: =3D > 6.0.389 /=3D20 > Virus Database: 220 - Release Date: =3D > 16/09/2002</EM></FONT></DIV></BODY></HTML> >=20 > ------=3D_NextPart_000_0054_01C26339.C64A9EE0-- >=20 >=20 >=20 > --__--__-- >=20 > Message: 7 > From: "Eric Richards" <e.r...@pa...> > To: <dev...@li...> > Date: Tue, 24 Sep 2002 06:52:34 +1200 > Subject: [Dev-C++] Still can not get update to work >=20 > it just freezes up=20 >=20 > From Eric >=20 > NO ATTACHMENT WAS SENT WITH THIS EMAIL, > IF THERE IS ONE, IT IS A UNDETECTED VIRUS, PLEASE LET ME KNOW.. >=20 > -----Original Message----- > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/02 >=20 >=20 >=20 > --__--__-- >=20 > Message: 8 > To: <dev...@li...> > Subject: Re: [Dev-C++] Confusing Linker Error > From: Elizabeth Barham <sog...@ya...> > Date: 23 Sep 2002 13:58:32 -0500 >=20 > "Napoleon Ahiable" <nah...@so...> writes: >=20 > > g++.exe Calc.o Commander.o Ctrl.o FunTab.o LoadDlg.o Main.o=20 > MenuTable.o =3D > > Nodes.o Output.o Parser.o SaveDlg.o Scanner.o Serial.o=20 > Store.o SymTab.o =3D > > View.o AboutDlg.o PortCalck.res -o "PortCalk.exe" -L"C:\MinGW\lib" = =3D > > -L"C:\Projects\WinLib" -I"C:\MinGW\include" =20 > -I"C:\MinGW\include\c++" =3D > > -I"C:\MinGW\include" -I"C:\Projects\WinLib" -D_WIN32_IE=3D3D0x0300 = =3D > > -DSTRICT -s -mwindows >=20 > This is a wild guess, but if WinLib.a is in C:\Projects\WinLib, then > shouldn't it be on the command line? Or, better yet, could it be > renamed "libWinLib.a" and then -lWinLib added onto the command line > after the -L"C:\Projects\WinLib" ? Especially if that is where all of > your undefined symbols are coming from. >=20 > Elizabeth >=20 >=20 >=20 > --__--__-- >=20 > _______________________________________________ > 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 >=20 >=20 > End of Dev-cpp-users Digest >=20 |
|
From: Vlada D. <dj...@im...> - 2002-09-24 07:17:15
|
Tied it and it works. Thanks. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of metalseb Sent: ponedeljak, 23. septembar 2002 19:35 To: DevC++ help Subject: Re: [Dev-C++] ANSI problem > hOldPen=SelectObject(hdc,hPen); //this is where I > get error message Well, SelectObject returns an HGIOBJ pointer, just cast the return value like this : hOldPen=(HPEN)SelectObject(hdc,hPen); And it should compile OK. Note that some compilers do the cast by themselves. This is not the case with MingW. And I think this is *really* better. -- Seb ------------------------------------------------------- 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: Goran R. <go...@ve...> - 2002-09-23 19:10:03
|
Hi, i was using qt for a long time, and now i must (i got new job) use wxWindows. I installed DevC++, wxwindows devpack and wxwindows and i can build wx applications. But, how to use nonenglish characters in source (for displaying forms)? |
|
From: Elizabeth B. <sog...@ya...> - 2002-09-23 18:58:40
|
"Napoleon Ahiable" <nah...@so...> writes: > g++.exe Calc.o Commander.o Ctrl.o FunTab.o LoadDlg.o Main.o MenuTable.o = > Nodes.o Output.o Parser.o SaveDlg.o Scanner.o Serial.o Store.o SymTab.o = > View.o AboutDlg.o PortCalck.res -o "PortCalk.exe" -L"C:\MinGW\lib" = > -L"C:\Projects\WinLib" -I"C:\MinGW\include" -I"C:\MinGW\include\c++" = > -I"C:\MinGW\include" -I"C:\Projects\WinLib" -D_WIN32_IE=3D0x0300 = > -DSTRICT -s -mwindows This is a wild guess, but if WinLib.a is in C:\Projects\WinLib, then shouldn't it be on the command line? Or, better yet, could it be renamed "libWinLib.a" and then -lWinLib added onto the command line after the -L"C:\Projects\WinLib" ? Especially if that is where all of your undefined symbols are coming from. Elizabeth |
|
From: Eric R. <e.r...@pa...> - 2002-09-23 18:50:43
|
it just freezes up From Eric NO ATTACHMENT WAS SENT WITH THIS EMAIL, IF THERE IS ONE, IT IS A UNDETECTED VIRUS, PLEASE LET ME KNOW.. -----Original Message----- --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/02 |
|
From: Napoleon A. <nah...@so...> - 2002-09-23 18:45:43
|
Hello, I'm trying to build a sample program from "C++ In Action" I have all the = general files in a Library and compiled all to create WinLib.a. I then = created the main project with the rest of the files. Under = >Project>Options I included the Path to my Library under both Library = Directories and Include Directories. When I compile the program this is = the error that I get. I'll appreaciate an explanation and a solution = please. Thanks. Napoleon. Building Makefile: "C:\Projects\PortCalck\Makefile.win" Executing make... mingw32-make.exe -f "C:\Projects\PortCalck\Makefile.win" all windres.exe -i PORTCA~1.RC -I rc -o PortCalck.res -O coff=20 g++.exe Calc.o Commander.o Ctrl.o FunTab.o LoadDlg.o Main.o MenuTable.o = Nodes.o Output.o Parser.o SaveDlg.o Scanner.o Serial.o Store.o SymTab.o = View.o AboutDlg.o PortCalck.res -o "PortCalk.exe" -L"C:\MinGW\lib" = -L"C:\Projects\WinLib" -I"C:\MinGW\include" -I"C:\MinGW\include\c++" = -I"C:\MinGW\include" -I"C:\Projects\WinLib" -D_WIN32_IE=3D0x0300 = -DSTRICT -s -mwindows Commander.o(.text$_ZN6Dialog5ModalC1EN3Win3DowEiRNS_15ModalControllerE+0x= 11):Commander.cpp: undefined reference to = `_ZN6Dialog9ModalProcEP6HWND__jjl@16' Ctrl.o(.text$_ZN4View8GetInputEv+0x16):Ctrl.cpp: undefined reference to = `Win::Edit::GetText() const' Ctrl.o(.text$_ZN4View12RefreshPopupEP7HMENU__i+0x17):Ctrl.cpp: undefined = reference to `Menu::DropDown::RefreshPopup(HMENU__*, int)' Ctrl.o(.text$_ZNK3Cmd10VectorExecI9CommanderE4TestEPKc+0x2e):Ctrl.cpp: = undefined reference to `Cmd::Vector::CmdToId(char const*) const' LoadDlg.o(.text$_ZN3Win7ListBox13ListDirectoryENS_3DowEPcij+0x82):LoadDlg= .cpp: undefined reference to `Win::Exception::Exception(std::string = const&, std::string const&, unsigned long)' Main.o(.text+0x72):Main.cpp: undefined reference to = `Win::ClassMaker::ClassMaker(char const*, HINSTANCE__*)' Main.o(.text+0x83):Main.cpp: undefined reference to = `Win::ClassMaker::SetIcons(int)' Main.o(.text+0xab):Main.cpp: undefined reference to = `Win::Maker::Maker(char const*, HINSTANCE__*)' Main.o(.text+0xfa):Main.cpp: undefined reference to = `Win::Maker::Create(Win::Controller&, char const*)' Main.o(.text+0x143):Main.cpp: undefined reference to = `Win::MsgPrepro::Pump()' Main.o(.text$_ZN9SmallIconD1Ev+0xd):Main.cpp: undefined reference to = `Icon::~Icon()' Main.o(.text$_ZN7StdIconD1Ev+0xd):Main.cpp: undefined reference to = `Icon::~Icon()' SaveDlg.o(.text+0x7b):SaveDlg.cpp: undefined reference to = `Win::Edit::GetText() const' SymTab.o(.text+0x1da):SymTab.cpp: undefined reference to = `Win::Exception::Exception(std::string const&, std::string const&, = unsigned long)' View.o(.text+0x51):View.cpp: undefined reference to = `Menu::DropDown::DropDown(Menu::BarItem const*, Cmd::Vector&)' View.o(.text+0x12d):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x178):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x1c3):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x1ec):View.cpp: undefined reference to = `Win::Dow::SubClass(Win::SubController*)' View.o(.text+0x239):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x27b):View.cpp: undefined reference to = `Font::Stock::GetTextSize(int&, int&)' View.o(.text+0x429):View.cpp: undefined reference to = `Menu::DropDown::DropDown(Menu::BarItem const*, Cmd::Vector&)' View.o(.text+0x505):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x550):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x59b):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x5c4):View.cpp: undefined reference to = `Win::Dow::SubClass(Win::SubController*)' View.o(.text+0x611):View.cpp: undefined reference to = `Win::ChildMaker::Create(char const*)' View.o(.text+0x653):View.cpp: undefined reference to = `Font::Stock::GetTextSize(int&, int&)' View.o(.text+0x7d3):View.cpp: undefined reference to = `Menu::DropDown::AttachToWindow(HWND__*)' View.o(.text+0x952):View.cpp: undefined reference to = `Win::Edit::Clear()' View.o(.text$_ZN3Win14StatusBarMakerC1EP6HWND__i+0x33):View.cpp: = undefined reference to `InitCommonControlsEx@4' View.o(.text$_ZN3Win14StatusBarMakerC1EP6HWND__i+0x87):View.cpp: = undefined reference to `Win::Exception::Exception(std::string const&, = std::string const&, unsigned long)' View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x1f):View.cpp: undefined = reference to `CreateStatusWindowA@16' View.o(.text$_ZN3Win14StatusBarMaker6CreateEv+0x75):View.cpp: undefined = reference to `Win::Exception::Exception(std::string const&, std::string = const&, unsigned long)' View.o(.text$_ZN3Win12ControlMakerC2EPKcP6HWND__i+0x25):View.cpp: = undefined reference to `Win::ChildMaker::ChildMaker(char const*, = Win::Dow, int)' mingw32-make.exe: *** [PortCalk.exe] Error 1 Execution terminated --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.389 / Virus Database: 220 - Release Date: 16/09/2002 |
|
From: metalseb <met...@fr...> - 2002-09-23 17:33:22
|
> windres.exe: Script.rc:12: parse error line 12 says : > CTEXT "Bartosz Milewski © 2001",IDC_STATIC,10,33,121,14 Just replace IDC_STATIC with -1 and it should compile without problems. Dunno why IDC_STATIC is not recognised by Windres, even since winresrc.h is included. Tales and mysteries of Windows C programming... -- Seb |
|
From: metalseb <met...@fr...> - 2002-09-23 17:33:20
|
> hOldPen=SelectObject(hdc,hPen); //this is where I > get error message Well, SelectObject returns an HGIOBJ pointer, just cast the return value like this : hOldPen=(HPEN)SelectObject(hdc,hPen); And it should compile OK. Note that some compilers do the cast by themselves. This is not the case with MingW. And I think this is *really* better. -- Seb |
|
From: <004...@ac...> - 2002-09-23 17:26:56
|
How can I link a OBJ file (from a ASM program) with a C++ program using = Dev-C++? Thanks! |
|
From: Carlos d. M. <cg...@wo...> - 2002-09-23 15:13:50
|
conio are files that have change between releases of mingw, first I got perfect use of its function, then I upgraded to mingw1.1 and it lost functionality, and now in mingw2.0.0 it seems fewer (just now I see at it= and it no defines clrscr), it has only the .h file, and it lost the .c file, = so I copied the two files from the conio which came with Dev-C++ 4.0 and I use them. Matthews escribi=F3: > I recently downloaded the new dev-c++ beta version, and am a bit stuck. > Looking through the included header files, I found a prototype for the > clrscr() function in conio.h, but trying to use clrscr() resulted in a > linker error. What header do I need to include to use clrscr()? > > Also, I believe dev-c++ to be C99 compatible, but how come when I tried= to > declare "char choice" halfway down a function, it gave me a parsing err= or? > C99 was supposed to allow variable declarations anywhere in the code. > > Thanks. > > ------------------------------------------------------- > 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: Daniel G. <sp...@ho...> - 2002-09-23 14:14:07
|
Ah I remember this with HBRUSHes, you need to add the type or something...I
can't remember what exactly it was though. Has this jogged anyone's memory?
>From: "Vlada Djurovic" <dj...@im...>
>To: "DevC++ help" <dev...@li...>
>Subject: [Dev-C++] ANSI problem
>Date: Mon, 23 Sep 2002 14:44:16 +0200
>
>Hi, everybody
>I wrote this function:
>
>void CLine::Draw(HDC hdc)
>{
> HPEN hPen,hOldPen;
> hPen=CreatePen(PS_SOLID,m_iWidth,m_crColor);
> hOldPen=SelectObject(hdc,hPen); //this is where I
>get error message
>
> MoveToEx(hdc,m_ptFrom.x,m_ptFrom.y,NULL);
> LineTo(hdc,m_ptTo.x,m_ptTo.y);
> SelectObject(hdc,hOldPen);
> DeleteObject(hPen);
> DeleteObject(hOldPen);
>}
>
>When I try to compile it, I get the message ANSI C++ forbids implicit
>conversion from `void *' in assignment in commented line. What is the
>problem?
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
|
|
From: Per W. <pw...@ia...> - 2002-09-23 13:44:38
|
A HPEN isn't just a numeric handle. It is a pointer to an object.
SelectObject() doesn't know what type of selection is made
(pen,brush,...), so the declaration of it can't just specify HPEN as
return value.
You have to make a type cast on the returned value.
/Per W
On Mon, 23 Sep 2002, Vlada Djurovic wrote:
> Hi, everybody
> I wrote this function:
> =20
> void CLine::Draw(HDC hdc)
> {
> HPEN hPen,hOldPen;
> hPen=3DCreatePen(PS_SOLID,m_iWidth,m_crColor);
> hOldPen=3DSelectObject(hdc,hPen); //this is where I
> get error message
> =20
> MoveToEx(hdc,m_ptFrom.x,m_ptFrom.y,NULL);
> LineTo(hdc,m_ptTo.x,m_ptTo.y);
> SelectObject(hdc,hOldPen);
> DeleteObject(hPen);
> DeleteObject(hOldPen);
> }
> =20
> When I try to compile it, I get the message =93ANSI C++ forbids implicit
> conversion from `void *' in assignment=94 in commented line. What is the
> problem?
>=20
|
|
From: Fatal E. <fe...@gm...> - 2002-09-23 13:34:05
|
Unfortunately dev-c++ uses an old version of mingw, You can download mingw 2.0 from www.mingw.com . Instead of conio.h put conio.c , maybe that's not a good way but simply it works. ----- Original Message ----- From: "Matthews" <dem...@uw...> To: <> Sent: Monday, September 23, 2002 4:24 AM Subject: [Dev-C++] clrscr() and c99 compatibility > I recently downloaded the new dev-c++ beta version, and am a bit stuck. > Looking through the included header files, I found a prototype for the > clrscr() function in conio.h, but trying to use clrscr() resulted in a > linker error. What header do I need to include to use clrscr()? > > Also, I believe dev-c++ to be C99 compatible, but how come when I tried to > declare "char choice" halfway down a function, it gave me a parsing error? > C99 was supposed to allow variable declarations anywhere in the code. > > Thanks. > > > > ------------------------------------------------------- > 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-09-23 12:43:49
|
Hi, everybody
I wrote this function:
=20
void CLine::Draw(HDC hdc)
{
HPEN hPen,hOldPen;
hPen=3DCreatePen(PS_SOLID,m_iWidth,m_crColor);
hOldPen=3DSelectObject(hdc,hPen); //this is where =
I
get error message
=20
MoveToEx(hdc,m_ptFrom.x,m_ptFrom.y,NULL);
LineTo(hdc,m_ptTo.x,m_ptTo.y);
SelectObject(hdc,hOldPen);
DeleteObject(hPen);
DeleteObject(hOldPen);
}
=20
When I try to compile it, I get the message =93ANSI C++ forbids implicit
conversion from `void *' in assignment=94 in commented line. What is the
problem?
|
|
From: metalseb <met...@fr...> - 2002-09-23 10:28:50
|
Hello Napoleon >The error is "list index out of bounds (4596)". I think this bug belongs to the integrated class browser. Just unable it in Tools/Editor options. Kind regards -- Seb |
|
From: metalseb <met...@fr...> - 2002-09-23 10:28:49
|
Hi Matthews >I recently downloaded the new dev-c++ beta version, and am a bit stuck. >Looking through the included header files, I found a prototype for the >clrscr() function in conio.h, but trying to use clrscr() resulted in a >linker error. What header do I need to include to use clrscr()? You don't need more headers. You just have to link with libconio.a Linker errors are not related with missing ".h" headers. In this case, you get *compiler* errors, not *linker* ones. Project options/Linker options : -lconio >Also, I believe dev-c++ to be C99 compatible, but how come when I tried to >declare "char choice" halfway down a function, it gave me a parsing error? >C99 was supposed to allow variable declarations anywhere in the code. No problem here. Can you make a cut&paste of the snippet that causes you the problem ? Kind regards -- Seb |
|
From: Vlada D. <dj...@im...> - 2002-09-23 07:18:16
|
OK. Thanks for your help. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of metalseb Sent: petak, 20. septembar 2002 15:55 To: devcpp mailing list Subject: RE: [Dev-C++] DialogBox returns -1 Hi Djura >I just tried your advice and it works. Glad to see it's ok now. >I just don't understand >why I had to replace IDC_STATIC with -1? Well, that's because from Windres' view, IDC_STATIC is unknown and is considered as a label which must be defined in the include file corresponding with the resource one. Like this : #define IDC_STATIC 2000 or everything else. But when I design a GUI, each time I know a static element won't be used by the program, I set its ID to -1. >anybody know if there is some kind of manual on DevC++ or Win32 >API(except MSDN)? Well, there is an online manual for DevC++ on bloodhed's site I think. Regarding Win32 API, I suggest you to buy the MS SDK CDROM online on MSDN. It costs USD 17 for anybody which lives in Europe and it is a *must buy* for anybody who wants to develop anything on Win platforms. This CD is worth hundreds of Euros in programming books, if you can find any nowadays on plain Win32 API programming, so sad.... But if you need a good start, just check out Forger's tutorial (Grab the URL using Google, haven't got it on this computer now) and find the basic "win32.hlp" file anywhere else. Kind regards -- Seb ------------------------------------------------------- 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: Matthews <dem...@uw...> - 2002-09-23 01:25:12
|
I recently downloaded the new dev-c++ beta version, and am a bit stuck. Looking through the included header files, I found a prototype for the clrscr() function in conio.h, but trying to use clrscr() resulted in a linker error. What header do I need to include to use clrscr()? Also, I believe dev-c++ to be C99 compatible, but how come when I tried to declare "char choice" halfway down a function, it gave me a parsing error? C99 was supposed to allow variable declarations anywhere in the code. Thanks. |
|
From: Zodiaq <zo...@ac...> - 2002-09-22 22:42:06
|
Hello Napoleon and all Dev-C++ users, Sunday, September 22, 2002, 9:14:58 PM, Napoleon wrote as follows: NA> Hi, NA> I get this error message quite a lot especially when I open a huge file of about 2000 lines . The error is "list index out of bounds (4596)". Huge -> 2k lines... LOL! NA> May be the creator can have a look at it. yeah... code completion is sloooow and buggy... NA> Napoleon. -- regards, Zodiaq |