🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.opensource
Article #5513

compiling problem

#5513
From: Toni Pljakoski
Date: Tue, 20 Mar 2001 10:53
31 lines
1853 bytes
Hi All,
after I precompile my program with gpre -cxx -e ivdconf.exx

int main(int argc, char *argv[])
{
 EXEC SQL DATABASE DB = 'ibtest.gdb';
 EXEC SQL CONNECT DB;
}

and the compile it with gcc -o ivdconf -I/usr/include ivdconf.cxx -lgds -ldl

I recevie following errors:

/usr/include/ibase.h: In function `int main(int, char **)':
In file included from ivdconf.exx:8:
/usr/include/ibase.h:275: parse error before string constant
ivdconf.exx: At top level:
ivdconf.exx:12: syntax error before `='
ivdconf.exx:14: syntax error before `='
ivdconf.exx:17: syntax error before `='
ivdconf.exx:7: parse error before `{'
ivdconf.exx:9: warning: ANSI C++ forbids declaration `SQLCODE' with no type
ivdconf.exx:9: conflicting types for `int SQLCODE'
ivdconf.exx:23: previous declaration as `long int SQLCODE'
ivdconf.exx:9: warning: implicit declaration of function `int
isc_sqlcode(...)'
ivdconf.exx:10: parse error before `}'

Could somebody please help me solving this problem.
Regards
Toni
Technical Details
Message-ID: <3ab73681_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!btnet-peer!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!dnews!213.143.93.25

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 106772,837db54690cebd5,start
X-Google-Attributes: gid106772,public
X-Google-ArrivalTime: 2001-03-20 03:28:05 PST
From: "Toni Pljakoski" <pgtoni@hermes.si>
Newsgroups: borland.public.interbase.opensource
Subject: compiling problem
Date: Tue, 20 Mar 2001 11:53:22 +0100
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 213.143.93.25
Message-ID: <3ab73681_1@dnews>
X-Trace: 20 Mar 2001 02:52:49 -0800, 213.143.93.25
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!btnet-peer!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!dnews!213.143.93.25