[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV C++/C mix
From: |
T.E.Dickey |
Subject: |
Re: LYNX-DEV C++/C mix |
Date: |
Sun, 17 Aug 1997 06:47:12 -0400 (EDT) |
>
> I need a crash course on mixing C++ and C if anyone can oblige. I have a
> C++ library that [supposedly] allows djgpp programs to use winsock. This
> could mean a lynx for Win3.x, but only if I can find a way to mix them.
>
> The winsock.h that comes with it is itself written in c++. It contains
> classes and substituting that for the normal tcp libraries results in a
> lot of:
I don't think there's a reliable way to call C++ from C, except (possibly)
by adding a layer in C++ that is defined w/o classes in its interface
(otherwise, the name-mangling produces this sort of problem).
> `Param' undeclared here (not in a function)
> warning: data definition has no type or storage
>
> It comes with a couple of pre-compiled samples written in C++. The
> samples do seem to work and use winsock, so I am hopeful--I just need a
> big clue.
>
> TIA,
> Wayne.
>
> ;
> ; To UNSUBSCRIBE: Send a mail message to address@hidden
> ; with "unsubscribe lynx-dev" (without the
> ; quotation marks) on a line by itself.
> ;
>
--
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;