From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21884 invoked by alias); 15 Jan 2008 08:30:38 -0000 Received: (qmail 21875 invoked by uid 22791); 15 Jan 2008 08:30:38 -0000 X-Spam-Check-By: sourceware.org Received: from posta.havelsan.com.tr (HELO posta.havelsan.com.tr) (195.142.233.57) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 15 Jan 2008 08:30:18 +0000 X-AuditID: ac100105-0000153c0000055c-ed-478c6f165681 Received: from albatros.havelsan.intranet ([10.0.1.4] RDNS failed) by posta.havelsan.com.tr with Microsoft SMTPSVC(6.0.3790.3959); Tue, 15 Jan 2008 10:30:14 +0200 Received: from hvldeneme ([85.99.253.6]) by albatros.havelsan.intranet with Microsoft SMTPSVC(6.0.3790.3959); Tue, 15 Jan 2008 10:30:13 +0200 Message-ID: <000301c85750$d82b5da0$d564a8c0@hvldeneme> From: "Kaplan Cem EREN" To: Subject: gnatbind error Date: Wed, 16 Jan 2008 01:42:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-9"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-StampID: G4ef02dd03b3c538aab381ec1208e98b8 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-01/txt/msg00129.txt.bz2 Hi, I have downloaded and installed version 4.2.2 for solaris 10. My ada program will call c objects and i need to change the "main". After compilation, while binding, i get an error message. I have listed my comp. steps and output below $ gnatmake -c hello.adb >gcc -c hello.adb $ gnatbind -x -Mnew_main hello.ali >gnatbind: -M not expected to be used on native platforms >error: "hello.ali" does not contain a unit that can be a main program The code is simple with text_io; procedure hello is begin text_io.put("Hello world"); end hello; How can i compile this code with FSU threads library ? Thanks in advance Kaplan Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, guvenlik nedeni ile kontrol edilerek saklanmaktadir.Mesajdaki gorusler gondericiye ait olup HAVELSAN A.S. resmi gorusu olmak zorunda degildir. Attention: This e-mail message is private and privileged.If you are not the recipient for whom this e-mail message is intended, please notify the sender immediately and delete this e-mail message from your system.All sent and received e-mail messages go through a virus scan in our company, and because of security reasons, they are stored after being controlled.Any opinions presented in this e-mail message are solely those of the author and do not necessarily represent HAVELSAN A.S.`s formal and authorized views.