Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Kylix and Slackware (Linux 2.4.29)

10 views
Skip to first unread message

Donner

unread,
Mar 27, 2006, 11:30:40 AM3/27/06
to

Hi! I'm trying to run Kylix 3 (open edition) on a Linux Slackware system, but it gives me wierd errors:

dholten@dell_linux1:~/test_dir$ bc++ -otest_prog test.cpp
Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland
test.cpp:
Error E2141 /usr/include/stdio.h 46: Declaration syntax errorhe first error is:
Error E2141 /usr/include/stdio.h 51: Declaration syntax error
Error E2238 /usr/include/stdio.h 88: Multiple declaration for '__BEGIN_NAMESPACE_STD'
Error E2344 /usr/include/stdio.h 46: Earlier declaration of '__BEGIN_NAMESPACE_STD'
Error E2141 /usr/include/stdio.h 88: Declaration syntax error
Error E2238 /usr/include/stdio.h 142: Multiple declaration for '__END_NAMESPACE_STD'
Error E2344 /usr/include/stdio.h 51: Earlier declaration of '__END_NAMESPACE_STD'
Error E2141 /usr/include/stdio.h 142: Declaration syntax error
Error E2238 /usr/include/stdio.h 152: Multiple declaration for '__BEGIN_NAMESPACE_STD'
Error E2344 /usr/include/stdio.h 88: Earlier declaration of '__BEGIN_NAMESPACE_STD'
Error E2141 /usr/include/stdio.h 152: Declaration syntax error
Error E2238 /usr/include/stdio.h 158: Multiple declaration for '__END_NAMESPACE_STD'
Error E2344 /usr/include/stdio.h 142: Earlier declaration of '__END_NAMESPACE_STD'
Error E2141 /usr/include/stdio.h 158: Declaration syntax error
Error E2238 /usr/include/stdio.h 184: Multiple declaration for '__END_NAMESPACE_STD'
Error E2344 /usr/include/stdio.h 158: Earlier declaration of '__END_NAMESPACE_STD'
Error E2141 /usr/include/stdio.h 184: Declaration syntax error
Error E2238 /usr/include/stdio.h 206: Multiple declaration for '__BEGIN_NAMESPACE_STD'
Error E2344 /usr/include/stdio.h 152: Earlier declaration of '__BEGIN_NAMESPACE_STD'
Error E2141 /usr/include/stdio.h 206: Declaration syntax error
Error E2147 /usr/include/stdio.h 211: 'FILE' cannot start a parameter declaration
Error E2238 /usr/include/stdio.h 221: Multiple declaration for '__END_NAMESPACE_STD'
Error E2344 /usr/include/stdio.h 184: Earlier declaration of '__END_NAMESPACE_STD'
Error E2141 /usr/include/stdio.h 221: Declaration syntax error
Error E2238 /usr/include/stdio.h 241: Multiple declaration for '__BEGIN_NAMESPACE_STD'
Error E2228 /usr/include/stdio.h 241: Too many error or warning messages
*** 26 errors in Compile ***

Line 46 in stdio.h is:
typedef struct _IO_FILE FILE;

This stdio.h file is used just fine by g++, but bc++ can't deal with it. Am I missing something here about installing Kylix properly? My program is a simple Hello, World! program.
- Donner

Trane Francks

unread,
Mar 29, 2006, 1:43:00 AM3/29/06
to
On 03/28/2006 01:30 AM +0900, Donner wrote:
> Hi! I'm trying to run Kylix 3 (open edition) on a Linux Slackware system, but it gives me wierd errors:
>
> dholten@dell_linux1:~/test_dir$ bc++ -otest_prog test.cpp
> Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland
> test.cpp:
> Error E2141 /usr/include/stdio.h 46: Declaration syntax errorhe first error is:
> Error E2141 /usr/include/stdio.h 51: Declaration syntax error
> Error E2238 /usr/include/stdio.h 88: Multiple declaration for '__BEGIN_NAMESPACE_STD'

*snip*

Did you move /usr/include to the front of the path in the
Directories/Conditionals dialog?

trane
--
/////////////////////////////////////////////////////////
// Trane Francks tr...@gol.com Tokyo, Japan
// Practice random kindness and senseless acts of beauty.

Andreas Hausladen

unread,
Mar 29, 2006, 4:11:20 AM3/29/06
to
You could install the (unofficial) Kylix 3 Include directory patch:

http://tinyurl.com/7ccsq
or
http://andy.jgknet.de/oss/kylix/wiki/index.php/Include_directory_patch


--
Regards,

Andreas Hausladen
(http://www.kylix-patch.de.vu - unofficial Kylix 3 patches)
(http://andy.jgknet.de/blog)

0 new messages