Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Use LCC as C++ Compiler?

259 views
Skip to first unread message

Josef Schmitz

unread,
Jun 1, 2001, 12:35:27 PM6/1/01
to
Hello,

I am very new to this and i want to use lcc as c++ compiler but it
doesnt compile the easiest code I can imagine: ( The "Hello World"
Program)

#include <iostream.h>

void main(void)
{
cout << "Hello World";
}

The error msg is
Error c:\t3\cpp.c 6 undefined reference to _cout
Error c:\t3\cpp.c 6 undefined reference to
__op_leftshift_iostream_char

What shall I do?

Dan Andersson

unread,
Jun 1, 2001, 12:52:11 PM6/1/01
to
Hint! It's a C compiler.


Friedrich Dominicus

unread,
Jun 1, 2001, 1:01:00 PM6/1/01
to
ano...@gmx.de (Josef Schmitz) writes:

> Hello,
>
> I am very new to this and i want to use lcc as c++ compiler but it
> doesnt compile the easiest code I can imagine: ( The "Hello World"
> Program)

You can not use lcc as a C++ compiler becaus it is an Ansi-C
compiler. So you have to find a C++ compiler, e.g gcc.
www.gnus.org

There is a C++ Frontend which might work with lcc-win32. You can get
it from here.
www.comeaucomputing.com


Regards
Friedrich

Klaus Rotter

unread,
Jun 2, 2001, 6:59:58 AM6/2/01
to
Friedrich Dominicus <fr...@q-software-solutions.com> wrote:
> www.gnus.org

This is the homepage of the newsreader for emacs. http://gcc.gnu.org is the
way to go. I would recommend http://www.mingw.org.

--
Klaus Rotter * mailto:kl...@rotters.de

jacob navia

unread,
Jun 3, 2001, 11:23:15 AM6/3/01
to

"Klaus Rotter" <rot...@rotters.de> wrote in message
news:evgaf9...@touch.rotters.de...

> Friedrich Dominicus <fr...@q-software-solutions.com> wrote:
> > www.gnus.org
>
> This is the homepage of the newsreader for emacs. http://gcc.gnu.org is
the
> way to go. I would recommend http://www.mingw.org.

The mingw poject hasn't been updated and appears to be dead since Nov 1999
.

Mumit Khan

unread,
Jun 4, 2001, 11:43:51 AM6/4/01
to
In article <9fdkp6$khr$1...@wanadoo.fr>,

jacob navia <ja...@jacob.remcomp.fr> wrote:
>
>The mingw poject hasn't been updated and appears to be dead since Nov 1999
>.

Jacob, Perhaps you ought to take a quick look at http://www.mingw.org/,
especially the ``News'' section and the downloads area, before making
such a statement.

Regards,
Mumit

jacob navia

unread,
Jun 5, 2001, 6:04:55 PM6/5/01
to
Well, I downloaded it, started it, and it doesn't seem to recognize any
source files nor any debug information...
I tested with lcc code, and microsoft compiler code. The debugger will
always show you assembler and nothing else. Besides, all options are
designed with assembly programming in mind.

Of course it is "ideal" assembler, but assembler nonetheless.

Another small problem is that it is impossible to set any breakpoint
(hardware or otherwise) at a specific address... You have a choice of
"events" where you set a breakpoint, but they are somehow not triggered (I
set a breakpoint when starting a thread, the program started one, and
nothing happened).

I do not want to say this debugger hasn't some utility but...

Well, it is free of charge, but I know of another debugger (free of charge
too), that does a little more stuff.

You have an interesting signature "desperado".
> -----BEGIN DESCRAMBLE SIGNATURE-----
>
> #define m(i)(x[i]^s[i+84])<<
> unsigned char
x[5],y,s[2048];main(n){for(read(0,x,5);read(0,s,n=2048);write(1,s
> ,n))if(s[y=s[13]8+20]/164==1){int
i=m(1)17^256+m(0)8,k=m(2)0,j=m(4)17^m(3)9^k

But here, s[13]8 you have a syntax error you see?


jacob navia

unread,
Jun 5, 2001, 6:19:09 PM6/5/01
to
> >The mingw poject hasn't been updated and appears to be dead since Nov
1999
> >.
>
> Jacob, Perhaps you ought to take a quick look at http://www.mingw.org/,
> especially the ``News'' section and the downloads area, before making
> such a statement.
>
> Regards,
> Mumit
>

I am sorry Mumit, I was misled by this sentence in that page:
---> Begin quote
Latest release: gcc-2.95.2. The release pack includes Mingw runtime
1999-11-07, gcc-2.95.2, and binutils-2.9.4, gdb-4.18.1, make-3.77. (Nov 7,
1999)

<--- end quote

But I stand corrected. In any case, as long as you go on working on it, that
project is not dead at all. You were the driving force in that enormous
work, and I have a great respect for you and that project..

I apologize for this misunderstanding.

0 new messages