From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=5.0 tests=BAYES_00,HK_RANDOM_FROM, INVALID_MSGID,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bffac9eb5dce1b18 X-Google-Attributes: gid103376,public From: czgrr Subject: Re: DOS Command in OA Date: 1999/08/06 Message-ID: <7oe18q$lmd$1@nnrp1.deja.com>#1/1 X-Deja-AN: 509480457 References: <37A80902.1454720B@nwn.de> X-Http-Proxy: 1.0 x22.deja.com:80 (Squid/1.1.22) for client 193.192.234.4 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Fri Aug 06 07:01:49 1999 GMT X-MyDeja-Info: XMYDJUIDczgrr Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT) Date: 1999-08-06T00:00:00+00:00 List-Id: In article , "David C. Hoos, Sr." wrote: > [We are using WIN95 and Aonix Object Ada 7.1.] > ------------------ > with Interfaces.C; > function Execute_Shell_Command (The_Command_String : String) > return Interfaces.C.Int is > package C renames Interfaces.C; > function System (S : C.Char_Array) return C.Int; > pragma Import (C, System, "system"); > begin > return System (C.To_C (The_Command_String)); > end Execute_Shell_Command; And what linker option or path do I need to add in order to get this to build without a "LNK2001: unresolved external symbol _system" error? Cheers, czgrr -- Email address blocked - reply to the newsgroup. Assume Ada83 and (V)C++ unless said otherwise. My opinions are independent from my employer's. Use any suggestions at your own risk. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.