| www.delorie.com/archives/browse.cgi | search |
| Xref: | news-dnh.mv.net comp.os.msdos.djgpp:954 |
| Path: | news-dnh.mv.net!mv!news.sprintlink.net!demon!uknet!daresbury!s-crim1!mbbad |
| From: | mbbad AT s-crim1 DOT dl DOT ac DOT uk (I. Badcoe) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: [Q] DJGPP2. PC.H problems. |
| Date: | 18 Jul 1995 09:49:21 GMT |
| Organization: | SERC Daresbury Lab, Warrington, U.K. |
| Lines: | 27 |
| References: | <805268499 DOT 107snx AT techm DOT pl DOT my> |
| Nntp-Posting-Host: | s-crim1.dl.ac.uk |
| To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
| Dj-Gateway: | from newsgroup comp.os.msdos.djgpp |
Kenneth Foo (kenfoo AT techm DOT pl DOT my) wrote:
: I've just got myself the beta version of DJGPP 2.0, and I tried
: compiling a very-very simple C++ code. (Yes, I installed GPP too)
: The file name is T.CC and it goes something like this.
: include "stdio.h"
: include "pc.h"
: void main(void) {
: /*(Do nothing)*/
: }
This is 'cos the pc.h header doesn't contain the lines to declare the function
calls a C-calls when using C++, bracket it with:
#ifdef _cplusplus
extern "C" {
#endif
....
#ifdef _cplusplus
}
#endif
Badders
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |