Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters
Register

Reply
 
LinkBack Thread Tools
Old 27.05.2004, 18:04   #1
4294967296
 
Boyov's Avatar
 
Join Date: 03 2002
Location: /proc/1
Age: 33
Posts: 379
Downloads: 4
Uploads: 0
Reputation: 0 | 0
Default Problem compiling with STLPort

Hi,

I am using Microsoft Visual C++ .Net with latest Platform SDK. I have compiled and installed STLport(latest version 4.6.2) with no errors. When trying to compile my project I am getting numerous errors (shown below).


Could somebody help me with this ?
Thanks in advance


Compiling...
Classad_wrap.CPP
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stdexcept(63) : warning C4275: non dll-interface class 'exception' used as base for dll-interface class '_STL::__Named_exception'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\../include\exception(27) : see declaration of 'exception'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stdexcept(63) : see declaration of '_STL::__Named_exception'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ios_base.h(181) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ios.h(110) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.h(181) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.h(196) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.h(418) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.h(423) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.h(418) : error C2039: 'win32_eof' : is not a member of '_STL::char_traits<_CharT>'
with

C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\char_traits.h(214) : see declaration of '_STL::char_traits<_CharT>'
with

C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.h(418) : error C2660: 'win32_eof' : function does not take 0 parameters
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.h(423) : error C2039: 'win32_eof' : is not a member of '_STL::char_traits<_CharT>'
with

C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\char_traits.h(214) : see declaration of '_STL::char_traits<_CharT>'
with

C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.h(423) : error C2660: 'win32_eof' : function does not take 0 parameters
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.c(59) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.c(90) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.c(118) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.c(142) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.c(154) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.c(160) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.c(166) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.c(167) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_streambuf.c(174) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostreambuf_iterator.h(59) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostream.h(89) : warning C4003: not enough actual parameters for macro 'write'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostream.h(89) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostream.h(149) : see reference to class template instantiation '_STL::basic_ostream<_CharT,_Traits>' being compiled
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostream.h(89) : error C2143: syntax error : missing ')' before ';'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostream.h(89) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostream.h(189) : see reference to class template instantiation '_STL::basic_ostream<_CharT,_Traits>' being compiled
with

C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostream.h(89) : error C2143: syntax error : missing ')' before ';'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostream.h(89) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostream.h(192) : see reference to class template instantiation '_STL::basic_ostream<_CharT,_Traits>' being compiled
with

C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostream.h(89) : error C2143: syntax error : missing ')' before ';'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_limits.h(255) : error C2908: explicit specialization; '_STL::numeric_limits<_Tp>' has already been instantiated from the primary template
with

C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostream.c(358) : warning C4003: not enough actual parameters for macro 'write'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostream.c(358) : error C2988: unrecognizable template declaration/definition
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_ostream.c(358) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istreambuf_iterator.h(38) : error C2143: syntax error : missing ')' before ';'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istreambuf_iterator.h(38) : error C2988: unrecognizable template declaration/definition
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istreambuf_iterator.h(38) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istreambuf_iterator.h(44) : error C2954: template definitions cannot nest
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istreambuf_iterator.h(91) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istreambuf_iterator.h(61) : error C2059: syntax error : 'this'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istreambuf_iterator.h(112) : see reference to class template instantiation '_STL::istreambuf_iterator<_CharT,_Traits>' being compiled
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istreambuf_iterator.h(61) : error C2238: unexpected token(s) preceding ';'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istreambuf_iterator.h(63) : error C2143: syntax error : missing ';' before 'inline'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istreambuf_iterator.h(116) : error C2244: '__ctor' : unable to match function definition to an existing declaration
definition
'_STL::istreambuf_iterator<_CharT,_Traits>::istreambuf_iterator(_STL::basic_istream<_CharT,_Traits> &)'
existing declarations
'_STL::istreambuf_iterator<_CharT,_Traits>::istreambuf_iterator(_STL::istreambuf_iterator<_CharT,_Traits>::streambuf_type *)'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istreambuf_iterator.h(118) : error C2954: template definitions cannot nest
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istreambuf_iterator.h(153) : error C2039: '++' : is not a member of '_STL::istreambuf_iterator<_CharT,_Traits>'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.h(175) : warning C4003: not enough actual parameters for macro 'read'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.h(175) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.h(203) : see reference to class template instantiation '_STL::basic_istream<_CharT,_Traits>' being compiled
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.h(175) : error C2143: syntax error : missing ')' before ';'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.h(175) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.h(249) : see reference to class template instantiation '_STL::basic_istream<_CharT,_Traits>' being compiled
with

C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.h(175) : error C2143: syntax error : missing ')' before ';'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.h(175) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.h(252) : see reference to class template instantiation '_STL::basic_istream<_CharT,_Traits>' being compiled
with

C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.h(175) : error C2143: syntax error : missing ')' before ';'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(174) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(259) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(283) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(313) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(373) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(482) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(768) : warning C4003: not enough actual parameters for macro 'read'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(773) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(790) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(768) : error C2988: unrecognizable template declaration/definition
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(768) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(802) : error C2143: syntax error : missing ')' before '{'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(802) : error C2988: unrecognizable template declaration/definition
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(802) : error C2059: syntax error : '{'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(802) : error C2143: syntax error : missing ';' before '{'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(802) : error C2447: '{' : missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(806) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(832) : warning C4003: not enough actual parameters for macro 'eof'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(844) : error C2954: template definitions cannot nest
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stl\_istream.c(1292) : warning C4003: not enough actual parameters for macro 'eof'
\stlp_classad\Classads_1.02_vc6_may12\Classad_wrap.CPP(773) : warning C4018: '<' : signed/unsigned mismatch
Classad_1.02.CPP
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stdexcept(63) : warning C4275: non dll-interface class 'exception' used as base for dll-interface class '_STL::__Named_exception'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\../include\exception(27) : see declaration of 'exception'
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stlport\stdexcept(63) : see declaration of '_STL::__Named_exception'
__________________
Free your mind and your OS will follow
Reply With Quote
Old 27.05.2004, 18:20   #2
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Downloads: 102
Uploads: 34
Blog Entries: 16
Reputation: 561 | 6
Default

I had little problems when compiling STLPort under Visual Studio. Have you moved directories for includes in MSVC options to the top?
Reply With Quote
Old 27.05.2004, 21:35   #3
Грустно...
 
Agregat's Avatar
 
Join Date: 08 2002
Location: Там, где всегда идут дожди
Age: 35
Posts: 21,717
Downloads: 2
Uploads: 0
Reputation: 250 | 7
Default

СТЛпорт может исползоваться только на вершине Include directories. Попробуй так,
Reply With Quote
Old 28.05.2004, 09:52   #4
4294967296
 
Boyov's Avatar
 
Join Date: 03 2002
Location: /proc/1
Age: 33
Posts: 379
Downloads: 4
Uploads: 0
Reputation: 0 | 0
Default

Quote:
Originally Posted by Agregat
СТЛпорт может исползоваться только на вершине Include directories. Попробуй так,
А у меня так и стоит
Reply With Quote
Old 28.05.2004, 10:00   #5
4294967296
 
Boyov's Avatar
 
Join Date: 03 2002
Location: /proc/1
Age: 33
Posts: 379
Downloads: 4
Uploads: 0
Reputation: 0 | 0
Default

кстати тот же самый вопрос я постнул в форум на stlport.org.
Висит уже дня 2.
Безрезультатно.
Reply With Quote
Old 29.05.2004, 21:15   #6
4294967296
 
Boyov's Avatar
 
Join Date: 03 2002
Location: /proc/1
Age: 33
Posts: 379
Downloads: 4
Uploads: 0
Reputation: 0 | 0
Default

[offtop]
тхур а
[/offtop]
Reply With Quote
Old 30.05.2004, 07:44   #7
Грустно...
 
Agregat's Avatar
 
Join Date: 08 2002
Location: Там, где всегда идут дожди
Age: 35
Posts: 21,717
Downloads: 2
Uploads: 0
Reputation: 250 | 7
Default

Короче так. Если ты пользуешься IOstream библиотекой stlport a, то ее надо сбилдать, получить dll и lib файлы, которые потом надо распостранять с программой. Если тебе этого не хочется, тогда нам в stl_config.h (по моему так) надо откомментировать один define. И вообще доки читать надо.
Reply With Quote
Old 30.05.2004, 15:22   #8
4294967296
 
Boyov's Avatar
 
Join Date: 03 2002
Location: /proc/1
Age: 33
Posts: 379
Downloads: 4
Uploads: 0
Reputation: 0 | 0
Default

Quote:
Originally Posted by Agregat
Короче так. Если ты пользуешься IOstream библиотекой stlport a, то ее надо сбилдать, получить dll и lib файлы,
Я написал о том что все нормально скомпилилось !!!!!!!!!!!! читай внимательней

Quote:
Originally Posted by Boyov
I have compiled and installed STLport(latest version 4.6.2) with no errors
Reply With Quote
Old 30.05.2004, 20:44   #9
Грустно...
 
Agregat's Avatar
 
Join Date: 08 2002
Location: Там, где всегда идут дожди
Age: 35
Posts: 21,717
Downloads: 2
Uploads: 0
Reputation: 250 | 7
Default

Хм... тогда не знаю даже
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 08:09.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.