--------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5B00061 Date: 05/03/97 From: ANDREAS NEUKOETTER Time: 06:02pm \/To: STEVE WESTCOT (Read 3 times) Subj: C++++++++++C+++++ Hi Steve, [...] SW> Does DJGPP contain OS/2 libraries? There is an OS/2 Version (I don't know exactly how it's called ... since i use VAC++ for the OS/2-Ports) ... but I think most of the Progs that use the EMX-Lib are done with it .... ciao Anti --- * Origin: ... type WIN to LOOSE ... (2:246/1030.2) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5C00000 Date: 05/07/97 From: MARAT AFANASYEV Time: 09:33pm \/To: CAMERON CLARK (Read 3 times) Subj: gcc+iostream classes question Hi, Cameron! Cameron Clark wrotes to Marat Afanasyev: CC> gcc = C compiler. = C++ Sure. But I can compile via the same command-line programs on three different languages: C, C++ and Objective C. Just call gcc -c .{c,cc,cpp,...} :-) AMF, Marat. aka Marat.Afanasyev@ksu.ru Kazan University. --- * Origin: 'Curioser and curioser' - cried I (2:5049/16.12) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5C00001 Date: 05/07/97 From: MARAT AFANASYEV Time: 09:38pm \/To: CRAIG MCGREGOR (Read 3 times) Subj: gcc+iostream classes question Hi, Craig! Craig McGregor wrotes to Marat Afanasyev: MA>> Could anyone explain what does happen in this case? In the same MA>> time building standart OS/2 executable using _link386.exe_ causes no MA>> error at all. Libraries are the same, except format of them. Is this MA>> a bug of _emx_? CM> Hmm, link386, you wouldn't be able to tell me what libraries CM> your linking in for the iostream stuff. I can't seem to compile any CM> cin << or cout >> statements using link386 Finally, I'd found out that cry RTFFAQ is very useful :-). Problem I'd had solved simply by changing order of object files and libraries. _ld_ demands all the C++ libraries needed by .o files must follow not precede object files, while _link386_ hasn't such an unordinarity. Concerning iostream.lib and other C++ libs in OS/2 linker format -- they can be created through standart procedure, but with some fix. One must add in 'files=' statement of omflibm.cmd all the .a-style libraries he wants to have in .lib-style. Of course, he mustn't provide an extensition. After all, just run the new omflibs.cmd. That's all. AMF, Marat. aka Marat.Afanasyev@ksu.ru Kazan University. --- * Origin: 'Curioser and curioser' - cried I (2:5049/16.12) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5C00002 Date: 05/07/97 From: MARAT AFANASYEV Time: 09:49pm \/To: STEVE WESTCOT (Read 3 times) Subj: C++++++++++C+++++ Hi, Steve! Steve Westcot wrotes to Andreas Neukoetter: SW> Does DJGPP contain OS/2 libraries? No. There exists a special edition of gcc for both OS/2 and DOS. It's emx. AMF, Marat. aka Marat.Afanasyev@ksu.ru Kazan University. --- * Origin: 'Curioser and curioser' - cried I (2:5049/16.12) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5C00003 Date: 05/06/97 From: ANTHONY TIBBS Time: 03:30pm \/To: JAKKI SOARES (Read 3 times) Subj: Want to learn to program On May 05 00:48, 1997, JAKKI SOARES of 1:138/276 wrote: JS> I would like to learn to program, I do know a little basic. Does JS> anyone JS> have any ideas about a good starting place for me? Also, will I JS> need to JS> purchase a specific kind of language program or is this something I JS> might find in a "boards file base". Any sort of tutorial or text This it the C++ echo, so I will assume you want to learn C++. Yes, you will need to get a compiler. I know of only one (half-decent) C++ compiler, which is DJGPP available at http://www.delorie.com/ or on some of the BBSes around here, anyways. Right now I'm using Turbo C++ V3.0 (Borland's) which is full of bugs, but it's all I've got. Since it *was* in the garbage, what can I say? I do have a text tutorial here (you'll have to go through a C one first, though, which I also have) but it's a bit outdated ('86/87 for the C one, '90 or so for the C++). I am working on my own right now.. Anthony --- TriED 0.90 * Origin: World of Power BBS <> Private <> Ottawa, Ontario, Canada (1:163/545.15) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5C00004 Date: 05/07/97 From: ANTHONY TIBBS Time: 04:26pm \/To: JERRY COFFIN (Read 3 times) Subj: Random access files On Apr 25 16:45, 1997, Jerry Coffin of 1:128/166.5 wrote: JC> On (23 Apr 97) Anthony Tibbs wrote to Kurt Kuzba... AT>> pointer, but not in this case.) JC> Actually, what he declared were perfectly legal - they're arrays of JC> pointers to char - i.e. arrays of strings. These are useful if you JC> have JC> a bunch of strings of widely varying lengths, so you want to only JC> allocate as much for each string as needed. I see that now. My mistake. It *wasn't* what he wanted to do, though. Anthony --- TriED 0.90 * Origin: World of Power BBS <> Private <> Ottawa, Ontario, Canada (1:163/545.15) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5C00005 Date: 05/06/97 From: BALOG PAL Time: 10:03pm \/To: DANIEL MCGREGOR (Read 3 times) Subj: Struct vs. class Hi, Daniel McGregor! On 01 May 97 21:30:43 you wrote to Javier Kohen JK> Which are the diffs of struct and class in C++... I know the JK> public/private defaults... DM> The last I checked in my compiler (Turbo C++ 3.1) "struct" wouldn't DM> let you use member functions while class would. I'm sure you you mistyped something there. TC3.1 comes with the same compiler as BC3.1 and in BC3.1 lets you use members in a struct. Paul ... Hard work never hurt anyone--but why risk it? --- OS/2 Warp * Origin: The FlintStones' Cave in BedRock (2:371/20) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5C00006 Date: 05/07/97 From: ERIK WARMELINK Time: 05:00am \/To: HERMAN SCHONFELD (Read 3 times) Subj: DJGPP OPTIMIZATIONS Herman, you wrote to Darin McBride: HS> Since you obviously fail to comprehend this I shall demonstrate. HS> Loop1 :- HS> #define bSize(99999) There isn't anything to optimize. Macro parameters should be identifiers. ;-) HS> Oh, but you being so proffessional and all, you probably HS> implement loops that look like this.. HS> Loop2 :- I would use memcpy() since I know the arrays don't overlap. It is shorter, better readable and probably faster. HS> Loop3 :- Why waste all that precious space, watch your cache and use Duff's device /* original code by Tom Duff, adapted from the Jargon File */ /* I am not sure whether it is PD */ int n = (bufSize+3)/4; char *to=buf1, *from=buf2; assert ( bufSize > 0 ); switch ( bufSize % 4 ) { case 0: do { *to++ = *from++; case 3: *to++ = *from++; case 2: *to++ = *from++; case 1: *to++ = *from++; } while ( n-- > 0 ); } Bye, Erik --- * Origin: WarmelinkE@vertis.nl (2:282/608.60) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5C00007 Date: 05/07/97 From: ERIK WARMELINK Time: 05:43am \/To: DARIN MCBRIDE (Read 3 times) Subj: OOP Darin, you wrote to Kevin Campbell: KC> Here's a though, why the post-incriminant ? Surely ++C would be uch KC> better? ;) DM> 'cuz it was incremented after the fact. :-) DM> First we used C, and then we incremented C. :-} But wouldn't it be nice if the value of the new language were larger than the original value of C? ;-) Bye, Erik --- * Origin: WarmelinkE@vertis.nl (2:282/608.60) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: E5C00008 Date: 05/05/97 From: HERMAN SCHONFELD Time: 04:00pm \/To: PAUL WANKADIA (Read 3 times) Subj: exceptions and DJGPP PW> On 30 Apr 97, Herman Schonfeld wrote to Paul Wankadia -- PW> [re DJGPP and exceptions] HS> PW> Any ideas??? TIA. HS> You have to link the appropriate libraries. PW> Thanks for that bit of invaluable information, Herman. Now, if you ould PW> manage to tell me what libraries I have to link, it PW> would make my life ever PW> so much easier, as I don't envisage finding such PW> information in the docs... The external libraries that you are using for your program. if a library is called libgfx.a you would 'gcc program.cpp libgfx.a' --- Maximus 3.01 * Origin: The BEAST (3:640/245) --- PCBoard (R) v15.3 (OS/2) 5