delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/27/19:15:38

From: dmt AT bigfoot DOT com (Jeff W./DMT)
Newsgroups: comp.lang.c,comp.lang.c++,comp.os.msdos.djgpp
Subject: using OBJ files with other languages?
Date: Tue, 27 Jan 1998 23:57:56 GMT
Organization: ZipLink -- America's Hottest ISP
Lines: 7
Message-ID: <34ce73e4.770906@news.ziplink.net>
NNTP-Posting-Host: chi-ip-1-248.ziplink.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm trying to write some code in C/C++ and compile it as an object
file so that I can link it with my turbo pascal code.  I did it once,
but I don't have the source code to study from since my hard drive
crashed (again =(.  Sooo, let's say I have a function DoSomething in
C/C++, and a global variable "Variable".  How would I compile the
c/c++ code so thta it links properly?  Does it in anyway relate to the
"extern" keyword or is thta just retarded? 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019