Date: Tue, 27 Jan 1998 18:59:00 -0800 (PST) Message-Id: <199801280259.SAA06230@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: dmt AT bigfoot DOT com (Jeff W./DMT), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: using OBJ files with other languages? Precedence: bulk At 11:57 1/27/1998 GMT, Jeff W./DMT wrote: >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? Trying to link DJGPP-generated C/C++ code with Turbo Pascal code is a lost cause and you might as well give up. If you aren't using DJGPP (and your posting implies that you are not), then please don't post to its newsgroup. Nate Eldredge eldredge AT ap DOT net