dev-cpp-users Mailing List for Dev-C++ (Page 634)
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: Mike M. <mc...@ms...> - 2002-01-11 13:51:10
|
This should be what your looking for : char *strcat(char *str1, const char *str2); >From: "Joost van Rooij" <jo...@va...> >To: dev...@li... >Subject: [Dev-C++] working with strings >Date: Fri, 11 Jan 2002 08:27:38 +0100 (CET) >MIME-Version: 1.0 >Received: from [207.46.181.45] by hotmail.com (3.2) with ESMTP id >MHotMailBE07DC5000934004215CCF2EB52D087317; Thu, 10 Jan 2002 23:16:53 -0800 >Received: from usw-sf-list1.sourceforge.net ([216.136.171.252]) by >cpimssmtpa21.msn.com with Microsoft SMTPSVC(5.0.2195.4617); Thu, 10 Jan >2002 23:14:51 -0800 >Received: from localhost ([127.0.0.1] helo=usw-sf-list1.sourceforge.net)by >usw-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian))id >16Ovu2-0002du-00; Thu, 10 Jan 2002 23:15:02 -0800 >Received: from c72123.upc-c.chello.nl ([212.187.72.123] >helo=penguin.vanrooij.net)by usw-sf-list1.sourceforge.net with esmtp (Exim >3.31-VA-mm2 #1 (Debian))id 16Ovt8-0002JX-00for ><dev...@li...>; Thu, 10 Jan 2002 23:14:07 -0800 >Received: from vanrooij.net (localhost [127.0.0.1])by penguin.vanrooij.net >(Postfix on SuSE Linux 7.2 (i386)) with SMTP id 316239C2Efor ><dev...@li...>; Fri, 11 Jan 2002 08:27:38 +0100 >(CET) >Received: from 213.53.92.194 (SquirrelMail authenticated user joost) > by penguin.vanrooij.net with HTTP; Fri, 11 Jan 2002 08:27:38 >+0100 (CET) >From dev...@li... Thu, 10 Jan 2002 23:17:18 >-0800 >Message-ID: <321...@pe...> >X-Mailer: SquirrelMail (version 1.0.6) >Sender: dev...@li... >Errors-To: dev...@li... >X-BeenThere: dev...@li... >X-Mailman-Version: 2.0.5 >Precedence: bulk >List-Help: ><mailto:dev...@li...?subject=help> >List-Post: <mailto:dev...@li...> >List-Subscribe: ><https://lists.sourceforge.net/lists/listinfo/dev-cpp-users>,<mailto:dev...@li...?subject=subscribe> >List-Id: Dev-C++ users mailing list <dev-cpp-users.lists.sourceforge.net> >List-Unsubscribe: ><https://lists.sourceforge.net/lists/listinfo/dev-cpp-users>,<mailto:dev...@li...?subject=unsubscribe> >List-Archive: <http://www.geocrawler.com/redir-sf.php3?list=dev-cpp-users> >X-Original-Date: Fri, 11 Jan 2002 08:27:38 +0100 (CET) >Return-Path: dev...@li... >X-OriginalArrivalTime: 11 Jan 2002 07:14:51.0548 (UTC) >FILETIME=[A94C45C0:01C19A6F] > >Hi, > >I am a c++ newbie and I am trying to put to strings together but I can't >seem to figure out how to do it. My previous coding experience is in PHP >where I found this very easy to do... > >I would like to do something like this > >char firstname [15]; >char lastname [20]; >char fullname [35] = (firstname+lastname); > >...But that obviously won't work! Can somebody show me how to do such a >thing? > > > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com |
|
From: carlos D. M. <cg...@wo...> - 2002-01-11 11:48:27
|
Vince Pileggi escribió:
> Preamble
>
> Hello I'm learning C++ and following examples in a text I found a good book on the web. This is a Chapter 9 exercise (of 30 + chapters) and up to now I have had no problems I could not solve.
>
> I'm not yet familiar with the debugger (perhaps I should be working on that).
>
> Problem:
>
> I'm trying to read in a file of data using the following code and data file (below):
>
> #include <iostream.h>
> #include <stdlib.h>
> #include <fstream.h>
>
> int main()
> {
> ifstream infile("test.dat", ios::in | ios::nocreate);
> int count =0;
>
> if (!infile.good()) {
> cout << "Sorry ! Couldn't open the file." << endl;
> exit(1);
> }
>
> int pclass;
>
> infile >> pclass;
>
> while(pclass != -1) {
> count++;
> int a1, a2, a3, a4, a5;
> infile >> a1 >> a2 >> a3 >> a4 >> a5;
> infile >> pclass;
> }
>
> cout << "I think there were " << cout cout << "I think there were";
> << "records in that file." <<endl; cout << "records in file" << endl;
>
> return 0;
> }
>
> test.dat:
>
> 1 0 0 0 0 0 0
> 1 1 0 0 0 0 0
> 1 0 1 0 0 0 0
> 1 0 0 1 0 0 0
> 1 0 0 0 1 0 0
> 1 0 0 0 0 1 0
> 1 0 0 0 0 0 1
> 1 1 0 1 0 0 0
> 1 0 1 1 0 0 1
> 1 0 1 1 1 0 0
> 1 0 1 1 1 1 0
> 1 0 1 0 1 1 0
> 0 0 0 0 0 0 0
> 0 1 0 0 0 0 0
> 0 0 1 0 0 0 0
> 0 0 0 1 0 0 0
> 0 0 0 0 1 0 0
> 0 0 0 0 0 1 0
> 0 0 0 0 0 0 1
> 0 1 0 1 0 0 0
> -1
>
> The code compiles and link with no errors but does not give me any output and does not allow any input; simply a console window with a blinking curser.
> I have the data file in the same directory as the executable.
>
> Oh yes, I'm working under WinNT.
>
> Any assistance/advice towards a solution is greatly appreciated.
>
> Thank you,
>
> Vince.
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
Well, I am too learning, but I did a couple of programs dealing with files. I think your problem is the program doesn't open the archive. The code is right (I added a correction in a line where
you write cout twice in aline, that's not correct, I think), it must work, but it doesn't. Try little modifications: the line if(!infile.good()), change it with if(!infile) and prove if this works
(it shall). If not, remove this check.
Of course, you must write the full path to the file you want write, or it will search it in the folder C:/DevC++/
***NOTE: Don't pay attention to this, at first, but that part of
infile >> pclass;
while(pclass != -1) {
count++;
int a1, a2, a3, a4, a5;
infile >> a1 >> a2 >> a3 >> a4 >> a5;
infile >> pclass;
}
perhaps can do either a bad working, first line would enter the first number from infile, the while compares the first number, then read from infile the second to a1, the third to a2[...], the
sixth to a5 (it enters the first number of the second line where you want the last of the current) without comparing them to -1, then it takes the second number of the second row and compares it
to -1, then the third number into the new a1, etc. If it works with the first modification, check this. So it would be fine you add a line for output the number entered in a1 to a5 each cicle.
**ANOTHER NOTE: When I want read from a file and write in another, it only works if the writing is performed inside a function, out from nest the open outfile togheter with open infile. If not, it
returns program error it must be closed by windows and restarted. Perhaps you don't find this problem in winNT, I use windows 2000, and the console programs doesn't work perfectly.
|
|
From: Joost v. R. <jo...@va...> - 2002-01-11 07:14:09
|
Hi, I am a c++ newbie and I am trying to put to strings together but I can't seem to figure out how to do it. My previous coding experience is in PHP where I found this very easy to do... I would like to do something like this char firstname [15]; char lastname [20]; char fullname [35] = (firstname+lastname); ...But that obviously won't work! Can somebody show me how to do such a thing? |
|
From: <the...@ju...> - 2002-01-10 23:02:09
|
I must admit to everyone on the list, that I really do think Dev-C++ is extremely awesome. I truly do like what the authors have done with it, and would like to thank them for making my life, and I'm sure many others' life, a lot easier! Thanks, Devin Torres |
|
From: William Mc C. <WIL...@ms...> - 2002-01-10 19:01:07
|
Hello:
I have recently downloaded the DEV. for C/C++ compiler and am having=
a problem adding another include library in the 'COMPILER OPTIONS' windo=
w.
The instructions state that I can add the additional library by appe=
nding a semicolon followed by the new path & library. My problem is the o=
nly way I can exit this window is to close it at which time the new the n=
ew library is gone. Is there some way to apply these changes & make them =
stay there.
I have just started to learn 'C' for the PC, but have been around MAI=
NFRAMES all my life. If anyone has any question concerning COBOL/BAL/REXX=
/AUTOCODER/CICS (MACRO & COMMAND) languages or QSAM/BSAM/BDAM/BPAM/VSAM (=
KSDS/ESDS)/IMS/DB2 databases please feel free to E-mail me and I would be=
happy to help.
William Mc Coy
|
|
From: Shadow <rh...@th...> - 2002-01-10 16:28:03
|
This email was delivered to you by The Free Internet. http://www.thefreeinternet.net --------------------------------------------------------------- |
|
From: Gregor P. <pe...@in...> - 2002-01-10 16:26:38
|
Hi folks,
Upon some trouble with the mingw compiler I want to switch to the cygwin
compiler like the 'Mingw and Cygwin.txt' says I added some variable
settings to my 'autoexec.bat'.
The paths mentioned in the 'Mingw and Cygwin.txt' differ from those on
my system so I tried a most recent matching (or that what I think that is).
Min and Cygwin.txt:
--------------------
SET PATH=C:\cygnus\cygwin-b20\H-i586-cygwin32\bin;%PATH%
SET C_INCLUDE_PATH=C:\cygnus\cygwin-b20\include
SET
CPP_INCLUDE_PATH=C:\cygnus\cygwin-b20\include\g++;C:\cygnus\cygwin-b20\include
SET LIBRARY_PATH=C:\cygnus\cygwin-b20\H-i586-cygwin32\i586-cygwin32\lib
SET GCC_EXEC_PREFIX=C:\cygnus\cygwin-b20\H-i586-cygwin32\lib\gcc-lib
Used substitudes in my 'autoexec.bat':
------------------------------------
REM *****************************************
REM Added to use cygwin Compiler with Dev-C++
REM *****************************************
REM these can also be edited by Compiler options from Dev-C++ IDE
SET PATH=C:\cygwin\bin\;%PATH%
SET C_INCLUDE_PATH=C:\cygwin\usr\include\;C:\cygwin\usr\include\w32api\
SET
CPP_INCLUDE_PATH=C:\cygwin\usr\include\g++-3\;C:\cygwin\usr\include;C:\cygwin\usr\include\w32api\
SET LIBRARY_PATH=C:\cygwin\lib\;C:\cygwin\lib\w32api\
REM this can't be edited by Compiler options from Dev-C++ IDE
SET
GCC_EXEC_PREFIX=C:\cygwin\lib\gcc-lib\i686-pc-cygwin\2.95.3-5\include
****************************************************************
Most of my programms can be compiled but two exceptions:
1) The funktion 'itoa(...)' isn't declared,
in the header file 'stdlib.h' like I expected it
=> As far as I know 'stdlib.h' belongs to ANSI-C standard, so
why 'itoa(...)' isn't declared in here?
=> Where do I find the correct header?
=> Which path (s. above) do I have to change in my 'autoexec.bat'?
2) After compiling nad linkting a Windows programm I get
this warning:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
warning: cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000
The default setting seems to be OK, because the programm runs.
=> What have I to do to get rid of this warning?
****************************************************************
CU
Gregor (pe...@in...)
|
|
From: Vince P. <Vin...@en...> - 2002-01-10 16:01:12
|
Preamble
Hello I'm learning C++ and following examples in a text I found a good =
book on the web. This is a Chapter 9 exercise (of 30 + chapters) and up to =
now I have had no problems I could not solve.
I'm not yet familiar with the debugger (perhaps I should be working on =
that).
Problem:
I'm trying to read in a file of data using the following code and data =
file (below):
#include <iostream.h>=20
#include <stdlib.h>
#include <fstream.h>=20
int main()
{
ifstream infile("test.dat", ios::in | ios::nocreate);
int count =3D0;
=20
if (!infile.good()) {
cout << "Sorry ! Couldn't open the file." << endl;
exit(1);
}
=20
int pclass;
=20
infile >> pclass;
=20
while(pclass !=3D -1) {
count++;
int a1, a2, a3, a4, a5;
infile >> a1 >> a2 >> a3 >> a4 >> a5;
infile >> pclass;
}
=20
cout << "I think there were " << cout=20
<< "records in that file." <<endl;
=20
return 0;
}
test.dat:
1 0 0 0 0 0 0
1 1 0 0 0 0 0
1 0 1 0 0 0 0
1 0 0 1 0 0 0
1 0 0 0 1 0 0
1 0 0 0 0 1 0
1 0 0 0 0 0 1
1 1 0 1 0 0 0
1 0 1 1 0 0 1
1 0 1 1 1 0 0
1 0 1 1 1 1 0
1 0 1 0 1 1 0
0 0 0 0 0 0 0
0 1 0 0 0 0 0
0 0 1 0 0 0 0
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 0 0 0 1 0
0 0 0 0 0 0 1
0 1 0 1 0 0 0
-1
The code compiles and link with no errors but does not give me any output =
and does not allow any input; simply a console window with a blinking =
curser.
I have the data file in the same directory as the executable.
Oh yes, I'm working under WinNT.
Any assistance/advice towards a solution is greatly appreciated.
Thank you,
Vince.
|
|
From: Daniel G. <sp...@ho...> - 2002-01-09 21:39:11
|
<html><div style='background-color:'><DIV> <P>Try scrolling up and make sure you have a ; at the end of the previous line of code (not }), and make sure you have a closing brace }<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: Clovis Sena <CS...@IT...> <DIV></DIV>>To: dev...@li... <DIV></DIV>>Subject: [Dev-C++] parse error at end of input ?? <DIV></DIV>>Date: Wed, 09 Jan 2002 18:52:32 -0200 <DIV></DIV>> <DIV></DIV>>Hi, <DIV></DIV>> <DIV></DIV>>I am having some compiler errors with this line: <DIV></DIV>> <DIV></DIV>>line 183 - /* ***** TELA TRES -- cadastro clientes ---------- */ <DIV></DIV>> <DIV></DIV>>the compiler output is: <DIV></DIV>> <DIV></DIV>>183 teste8.cpp <DIV></DIV>> parse error at end of input <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>As it is just a comment i have no idea of what is wrong here. Does <DIV></DIV>>anyone?? <DIV></DIV>> <DIV></DIV>>ps: this is the last line of this program. <DIV></DIV>> <DIV></DIV>>thanks. <DIV></DIV>> <DIV></DIV>>------------------------------------------------- <DIV></DIV>>Clovis Sena <DIV></DIV>>Itautec.Com Servicos <DIV></DIV>>Suporte Tecnico Software/Hardware <DIV></DIV>>--------------- <DIV></DIV>>Email: cs...@it... <DIV></DIV>>Fone : 0xx81-3421-1126 <DIV></DIV>>Fax : 0xx81-3421-4988 <DIV></DIV>>------------------------------------------------- <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>_______________________________________________ <DIV></DIV>>Dev-cpp-users mailing list <DIV></DIV>>Dev...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></div><br clear=all><hr>Join the worlds largest e-mail service with MSN Hotmail. <a href='http://go.msn.com/bql/hmtag4_etl_EN.asp'>Click Here</a><br></html> |
|
From: <tho...@ya...> - 2002-01-09 21:34:25
|
--- Clovis Sena <cs...@it...> ha scritto: > Hi, > > I am having some compiler errors with this line: > > line 183 - /* ***** TELA TRES -- cadastro clientes > ---------- */ hi, the line seems ok, a commented line like /* blabla */ > > the compiler output is: > > 183 teste8.cpp > parse error at end of input > > are you shure that the error did not happend before? > As it is just a comment i have no idea of what is > wrong here. Does anyone?? > > ps: this is the last line of this program. that's the reason i think so. ciao sixsix > > thanks. > > ------------------------------------------------- > Clovis Sena > Itautec.Com Servicos > Suporte Tecnico Software/Hardware > --------------- > Email: cs...@it... > Fone : 0xx81-3421-1126 > Fax : 0xx81-3421-4988 > ------------------------------------------------- > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ______________________________________________________________________ Iscriviti al gruppo ufficiale di Tomb Raider: http://it.groups.yahoo.com/group/gruppoufficiale_tombraider/ |
|
From: Clovis S. <cs...@it...> - 2002-01-09 20:51:54
|
Hi, I am having some compiler errors with this line: line 183 - /* ***** TELA TRES -- cadastro clientes ---------- */ the compiler output is: 183 teste8.cpp parse error at end of input As it is just a comment i have no idea of what is wrong here. Does anyone?? ps: this is the last line of this program. thanks. ------------------------------------------------- Clovis Sena Itautec.Com Servicos Suporte Tecnico Software/Hardware --------------- Email: cs...@it... Fone : 0xx81-3421-1126 Fax : 0xx81-3421-4988 ------------------------------------------------- |
|
From: Clovis S. <cs...@it...> - 2002-01-09 20:51:10
|
Hi, I am having some compiler errors with this line: line 183 - /* ***** TELA TRES -- cadastro clientes ---------- */ the compiler output is: 183 teste8.cpp parse error at end of input As it is just a comment i have no idea of what is wrong here. Does anyone?? ps: this is the last line of this program. thanks. ------------------------------------------------- Clovis Sena Itautec.Com Servicos Suporte Tecnico Software/Hardware --------------- Email: cs...@it... Fone : 0xx81-3421-1126 Fax : 0xx81-3421-4988 ------------------------------------------------- |
|
From: Gregor P. <pe...@in...> - 2002-01-09 16:56:49
|
Let me guess you are using the mingw-compiler? Got some problems with it myself here http://www.cygwin.com/ml/cygwin/1999-12/msg00382.html is a bug report which talks about 'interesting link time errors'. Some of my problems (all of my 'undefined references') get solved by switching to the cygwin compiler. The Problem with the cygwin compiler is it isn't the easiest to install and its 'stdlib.h' does not declare the itoa(..)function which I personally need. So this tradeoff is on yourself. If you are not shure if your libs are OK pack them via the ar-tool from cygwin. The command ar rsc libWhateverYouWant.a *.o packs all object code into the lib file 'libWhateverYouWant.a' which get used by Dev-C++ as -lWhateverYouWant Hope this helps Gregor (pe...@in...) DXFX wrote: > I'm sorry, but I stated it wrong... > > I have the DLLs, precompiled for me. Particularly, the .DLL files is what I have. > > What I know is to use this DLLs in new programs, I have to make interface libraries for the DLLs... How do I do that? I've been trying to use dlltool with this purpose. I'm using the following in the command line... > > dlltool -D MyDLL.dll -l MyDLL.a > > and the interface library comes out just fine. However, When I try to compile programs linking with the library, I'm still getting undefined references to functions. I have made a header file for the library, which contains the DLLs exported functions... but when I compile, I get the an undefined reference to the functions. > > Am I doing the thing right? I created the import/interface library then created my own header files. I included this header files with my code, then linked with the interface library... was it right? > > __________________________________ > www.edsamail.com > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |
|
From: Gregor P. <pe...@in...> - 2002-01-09 14:03:00
|
Hi there, can anybody tell me if the (Mingw / Cygwin) Compilers used by Dev-C++ are affected of this Compiler-Bug? http://www.cygwin.com/ml/cygwin/1999-12/msg00382.html From the menue of Dev-C++ IDE 'Help/About Bloodshed Dev-C++' reports that I would use Dev-C++ Version 4.01 an the Mingw compiler 2.95.2-1 MSVCRT. Do I have to update the compiler? Cheers Gregor (pe...@in...) |
|
From: Ioannis V. <no...@ya...> - 2002-01-09 13:45:32
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Leonard Mazzone
> Sent: Wednesday, January 09, 2002 3:16 AM
> To: dev...@li...
> Subject: [Dev-C++] quick question about sending stuff to windows
>
>
> im tring to make a quicky chat program for me and my friends
> to use over the school network. what i have so far looks like this :
>
> //net send simplyfier, good for lan chat
>
>
> #include <iostream.h>
> #include <stdlib.h>
>
> int main()
> {
> char name [20] ; //define variables
> char text [100] ;
> cout << ("what user to you want to
> messsage?" "\n")
> ;
> cin >> name ;
> cout << name ; //verbose
> cout << ("\n") ; //ending line
> cout << ("what is the text of the message
> you wish to send?" "\n");
> cin >> "text" ;
> cout << "text" ; //verbose
> cout << ("\n"); //ending
> line, is there a
> better way?
> system("net send name text"); // uses the
> net command to send the text to the receiver's computer
> *need to figure out how to send my variables with it.
> system("PAUSE"); //die!
> return 0;
> }
> i know very little about c++ and attempting to teach myself
> any ideas about line 19 anone?
> specifically how can i get the varibles name and text passed
> along to the net send command
>
>
>
> regards and thank you in advance
>
> -len
string s1="text1";
string s2="test2";
string s3=s1+s2; // s3=="text1text2"
With the above technique you can do the job.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.d2g.com
* Alternative URL: http://run.to/noicys
|
|
From: dave h. <ku...@ya...> - 2002-01-09 10:20:42
|
I want to configure Dev C++ to compile fortran programs. I was reading cygwin.txt and I noticed that I can set up Dev C++ to use gcc. Is it possible to add the path to the fortran compiler/dir(s), and add some lines to my autoexec.bat file? Or would I have to add my changes, and recompile Dev C++ to allow for fortran compiling? __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ |
|
From: dave h. <ku...@ya...> - 2002-01-09 10:20:41
|
I want to configure Dev C++ to compile fortran programs. I was reading cygwin.txt and I noticed that I can set up Dev C++ to use gcc. Is it possible to add the path to the fortran compiler/dir(s), and add some lines to my autoexec.bat file? Or would I have to add my changes, and recompile Dev C++ to allow for fortran compiling? __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ |
|
From: Lorenzo <co...@in...> - 2002-01-09 09:00:24
|
You can use message functions:
NetMessageBufferSend
NetMessageNameAdd
NetMessageNameDel
NetMessageNameEnum
NetMessageNameGetInfo
declared in lmmsg.h. Remember, this api run only on nt (like net send
command)
----------------------------------------------------------------------------
---
If debugging is the process of removing bugs,
then programming must be the process of putting them in.
----------------------------------------------------------------------------
---
|
|
From: Jason H. <jas...@bt...> - 2002-01-09 07:12:48
|
I don't know much about sending stuff around a lan, although if you can take
advantage of a system command then that would make things easier for you. If
you need to add your variables as a string to the net send command (I assume
there is a command like that available?) then you need to concatenate them
onto the net send command string. I suggest you use C++ strings for getting
the input and putting it all together and then convert it to a C string for
use in the command.
i.e.
#include <string>
#include <cstdlib>
#include <iostream>
int main()
{
std::string name, command;
char text[256];
command = "net send "; // assuming this is a valid command?
cout << "User name: ";
cin >> name; // Get's until whitespace
cout << "Send string: ";
cin.getline(text, 256); // Get's a line of text including whitespace
command += name + " " + text; // I'm unsure but this should work.
system(command.c_str()); // use the C string version of command
cout << "String sent." << endl; // a better way than "\n"
// do you need to pause?
}
This is all guess work, I don't know what is a valid way of sending messages
across your lan, but I hope it helps.
Jason.
----- Original Message -----
From: "Leonard Mazzone" <Leo...@Mi...>
To: <dev...@li...>
Sent: Wednesday, January 09, 2002 1:16 AM
Subject: [Dev-C++] quick question about sending stuff to windows
> im tring to make a quicky chat program for me and my friends to use over
> the school network. what i have so far looks like this :
>
> //net send simplyfier, good for lan chat
>
>
> #include <iostream.h>
> #include <stdlib.h>
>
> int main()
> {
> char name [20] ; //define variables
> char text [100] ;
> cout << ("what user to you want to messsage?" "\n")
> ;
> cin >> name ;
> cout << name ; //verbose
> cout << ("\n") ; //ending line
> cout << ("what is the text of the message you wish to
> send?" "\n");
> cin >> "text" ;
> cout << "text" ; //verbose
> cout << ("\n"); //ending line, is there a
> better way?
> system("net send name text"); // uses the net command to
> send the text to the receiver's computer *need to figure out how to send
> my variables with it.
> system("PAUSE"); //die!
> return 0;
> }
> i know very little about c++ and attempting to teach myself
> any ideas about line 19 anone?
> specifically how can i get the varibles name and text passed along to the
> net send command
>
>
>
> regards and thank you in advance
>
> -len
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Mike S. <fre...@ho...> - 2002-01-09 05:29:00
|
How come in the following code, the second scanf is skipped?
int main()
{
/* Declare variables for main() */
int count;
float x, y;
char cmd, cont;
/* Use array symb[] for extended ASCII characters */
char symb[] = { 201, 187, 200, 188, 199, 182, 186, 205, 196 };
/* Infinite loop, using break; to stop */
while(1)
{
printf( "\n%c", symb[0] );
for ( count = 0; count < COL; count++ )
printf( "%c", symb[7] );
printf( "%c", symb[1] );
printf( "\n%c Calculator v1.02 %c",
symb[6], symb[6] );
printf( "\n%c", symb[4] );
for ( count = 0; count < COL; count++ )
printf( "%c", symb[8] );
printf( "%c", symb[5] );
printf( "\n%c This program is a small little DOS %c",
symb[6], symb[6] );
printf( "\n%c calculator. When entering commands, %c",
symb[6], symb[6] );
printf( "\n%c please enter them like the following, %c",
symb[6], symb[6] );
printf( "\n%c otherwise it will not work. %c",
symb[6], symb[6] );
printf( "\n%c Example: 12 + 13 %c",
symb[6], symb[6] );
printf( "\n%c Keep in mind that * is multiplication, %c",
symb[6], symb[6] );
printf( "\n%c and that / is division. %c",
symb[6], symb[6] );
printf( "\n%c", symb[2] );
for ( count = 0; count < COL; count++ )
printf( "%c", symb[7] );
printf( "%c", symb[3] );
printf( "\nEnter equation >> ");
scanf( "%f %c %f", &x, &cmd, &y );
/* Determine which operation to execute */
if ( cmd == '+' )
add( x, y );
else if ( cmd == '-' )
sub( x, y );
else if ( cmd == '*' )
mult( x, y );
else if ( cmd == '/' )
div( x, y );
else
printf( "\n%f %c %f is not a valid equation. ", x, cmd, y );
x = 0;
y = 0;
cmd = 0;
printf( "\nContinue? (Y/n) >> "); /* This scanf is skipped */
scanf( "%c", &cont );
/* If statement used to break infinite loop */
if ( cont == 'n' || cont == 'N' )
break;
else;
}
printf( "\n\n" );
system( "pause" );
return 0;
}
______________________________
Mike Shoup [freak901010/mike9010]
www.psxfanatics.com
|
|
From: Leonard M. <Leo...@Mi...> - 2002-01-09 01:21:30
|
im tring to make a quicky chat program for me and my friends to use over
the school network. what i have so far looks like this :
//net send simplyfier, good for lan chat
#include <iostream.h>
#include <stdlib.h>
int main()
{
char name [20] ; //define variables
char text [100] ;
cout << ("what user to you want to messsage?" "\n")
;
cin >> name ;
cout << name ; //verbose
cout << ("\n") ; //ending line
cout << ("what is the text of the message you wish to
send?" "\n");
cin >> "text" ;
cout << "text" ; //verbose
cout << ("\n"); //ending line, is there a
better way?
system("net send name text"); // uses the net command to
send the text to the receiver's computer *need to figure out how to send
my variables with it.
system("PAUSE"); //die!
return 0;
}
i know very little about c++ and attempting to teach myself
any ideas about line 19 anone?
specifically how can i get the varibles name and text passed along to the
net send command
regards and thank you in advance
-len
|
|
From: Daniel G. <sp...@ho...> - 2002-01-08 22:43:26
|
<html><div style='background-color:'><DIV>Where on the net can I learn about hardware configuration? PC hardware, motherboards etc. that sort of thing.</DIV> <DIV>Any ideas?</DIV> <DIV> </DIV> <DIV>Daniel</DIV></div><br clear=all><hr>Send and receive Hotmail on your mobile device: <a href='http://go.msn.com/bql/hmtag2_etl_EN.asp'>Click Here</a><br></html> |
|
From: Ioannis V. <no...@ya...> - 2002-01-08 21:51:34
|
You haven't provided the function definition. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Andre` Niel Cameron > Sent: Tuesday, January 08, 2002 11:22 PM > To: Williams, Timothy W.; Dev-C++ > Subject: Re: [Dev-C++] (no subject) >=20 >=20 > That was it Duh to me;) Sorry guys its been acouple of years=20 > since I have used C/C++ bear with me;) Last one promise any=20 > clues on this: >=20 > /tmp/ccIZJ7So.o(.text+0x4): undefined reference to `titleshot(void)' >=20 > Thats what popped up after the other error went away. > Regards, > Andr=E9 C. > Technical Support > =D4=BF=D4=AC > -------------------------------------------------------------- > -------------- > - > Visit our support manual at http://supportmanual.com/ > ----- Original Message ----- > From: "Williams, Timothy W." <TIM...@sa...> > To: "'Andre` Niel Cameron'" <An...@Ax...>; "Dev-C++"=20 > <dev...@li...> > Sent: Tuesday, January 08, 2002 1:58 PM > Subject: RE: [Dev-C++] (no subject) >=20 >=20 > > It's tough to tell without more code but my guess is that you don't=20 > > have a function declaration? Admittedly, I haven't been=20 > following this=20 > > list so maybe I missed > something. > > > > For example: > > > > //must be declared before it is used. > > int titleshot(int n); > > > > int main() > > { > > int i =3D titleshot(3); > > system("PAUSE"); > > return 0; > > } > > > > int titleshot(int n) > > { > > return 1; > > } > > > > If it's more complex that this, post the code... > > --tim > > > > > -----Original Message----- > > > From: Andre` Niel Cameron [mailto:An...@Ax...] > > > Sent: Tuesday, January 08, 2002 1:45 PM > > > To: Dev-C++ > > > Subject: [Dev-C++] (no subject) > > > > > > > > > battle.c:8: warning: implicit declaration of function `int=20 > > > titleshot(...)' > > > > > > Any CLUE what this might mean? > > > Regards, > > > Andr=E9 C. > > > Technical Support > > > =D4=BF=D4=AC > > > -------------------------------------------------------------- > > > -------------- > > > - > > > Visit our support manual at http://supportmanual.com/ > > > > > > > > > _______________________________________________ > > > Dev-cpp-users mailing list Dev...@li... > > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > >=20 >=20 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |
|
From: Andre` N. C. <An...@Ax...> - 2002-01-08 21:25:20
|
That was it Duh to me;) Sorry guys its been acouple of years since I hav= e used C/C++ bear with me;) Last one promise any clues on this: /tmp/ccIZJ7So.o(.text+0x4): undefined reference to `titleshot(void)' Thats what popped up after the other error went away. Regards, Andr=E9 C. Technical Support =D4=BF=D4=AC -------------------------------------------------------------------------= --- - Visit our support manual at http://supportmanual.com/ ----- Original Message ----- From: "Williams, Timothy W." <TIM...@sa...> To: "'Andre` Niel Cameron'" <An...@Ax...>; "Dev-C++" <dev...@li...> Sent: Tuesday, January 08, 2002 1:58 PM Subject: RE: [Dev-C++] (no subject) > It's tough to tell without more code but my guess is that you don't hav= e a > function declaration? > Admittedly, I haven't been following this list so maybe I missed something. > > For example: > > //must be declared before it is used. > int titleshot(int n); > > int main() > { > int i =3D titleshot(3); > system("PAUSE"); > return 0; > } > > int titleshot(int n) > { > return 1; > } > > If it's more complex that this, post the code... > --tim > > > -----Original Message----- > > From: Andre` Niel Cameron [mailto:An...@Ax...] > > Sent: Tuesday, January 08, 2002 1:45 PM > > To: Dev-C++ > > Subject: [Dev-C++] (no subject) > > > > > > battle.c:8: warning: implicit declaration of function `int > > titleshot(...)' > > > > Any CLUE what this might mean? > > Regards, > > Andr=E9 C. > > Technical Support > > =D4=BF=D4=AC > > -------------------------------------------------------------- > > -------------- > > - > > Visit our support manual at http://supportmanual.com/ > > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |
|
From: Joshua T. <vap...@ms...> - 2002-01-08 20:28:11
|
I have tried to use the two following statments =20 cout.setf(ios::boolalpha); // or cout.setf(ios_base::boolalpha); =20 The first gives me the compiler errer " boolalpha is not a member of ios"= and the second says "unable to access ios_base", I have not changed any = of my default paths for liabaries, so how would I fix the error. I have u= sed ios members in the past... =20 Thanks ahead of time, Joshua T.Get more from the Web. FREE MSN Explorer download : http://expl= orer.msn.com |