delorie.com/archives/browse.cgi | search |
From: | Si <MMM AT vecktorlite DOT demon DOT co DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Declaring external assembly procedures |
Date: | Thu, 05 Feb 1998 13:34:59 -0800 |
Organization: | BT Labs, Martlesham Heath, Ipswich, UK |
Lines: | 13 |
Message-ID: | <34DA3083.7FC7@vecktorlite.demon.co.uk> |
References: | <6bav9a$mlo AT camel18 DOT mindspring DOT com> |
Reply-To: | MMM AT vecktorlite DOT demon DOT co DOT uk |
NNTP-Posting-Host: | pc5685.btlabs.bt.co.uk |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
dont quote me on this 'im fairly new to c++. I had a simular problem when I wanted to link some asm routines into a djgpp prog. at first it was just a normal .c prog and I used the simular conventions as above and all was ok.,but when I included some c++ code, and renamed to .cc to compile as a c++ prog, the compiler couldnt find the asm routines, so I used extern "C" void my_asm_routine(int,int); in the function declaration and it worked, i think its something to do with differences in name conventions between C and C++ progs in the object files????
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |