delorie.com/archives/browse.cgi | search |
From: | "Paul Vanukoff" <vanukoff AT primenet DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: questions about bcd and c++ |
Date: | Wed, 3 May 2000 10:20:13 -0700 |
Organization: | Frontier GlobalCenter Inc. |
Lines: | 52 |
Message-ID: | <8epn4g$k1i$1@nnrp02.primenet.com> |
References: | <8epjp2$jbp$1 AT nnrp02 DOT primenet DOT com> |
NNTP-Posting-Host: | unknown-206-phx.globalcrossing.com |
X-Complaints-To: | abuse AT globalcenter DOT net |
X-Posted-By: | @206.165.0.206 (vanukoff) |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2919.6600 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
BTW, here is the source: // cdtest.cpp // // cd testing program // // Paul Vanukoff - vanukoff AT primenet DOT com // // 2000 May 03 // ////////////////////////////////////////// #include "bcd.h" int main(void) { bcd_open(); bcd_close(); return(0); } And I get this error: Creating: cdtest.exe Error: cdtest.o: In function `main': cdtest.cpp(15) Error: undefined reference to `bcd_open(void)' cdtest.cpp(16) Error: undefined reference to `bcd_close(void)' Error: collect2: ld returned 1 exit status There were some errors If I rename the source to cdtest.c and recompile, it works fine. Any ideas at all? I am using RHIDE btw. "Paul Vanukoff" <vanukoff AT primenet DOT com> wrote in message news:8epjp2$jbp$1 AT nnrp02 DOT primenet DOT com... > ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2tk/bcd_104.zip > > Above library works great in .c programs, but I can't get it to work in .cpp > programs. Anyone have experience with this? > > > -- > Paul Vanukoff > vanukoff AT primenet DOT com > >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |