C için Seri Port Kütüphanesi

Başlatan eldirr, 01 Eylül 2008 - 19:00:30

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

eldirr

Merhaba arkadaşlar,

C için seri port kütüphanesine ihtiyacım var. Bir tane buldum aslında (http://libserial.sourceforge.net/). İndirip kaynak dosyalardan yüklemeyi de yaptım. Fakat kütüphaneyi bir programa eklemeye kalktığımda hata veriyor..

Compiling: /home/cnr/Desktop/GTK/gtkdeneme.c
In file included from /home/cnr/Desktop/GTK/gtkdeneme.c:2:
/usr/local/include/SerialStream.h:11:18: error: string: No such file or directory
/usr/local/include/SerialStream.h:12:19: error: fstream: No such file or directory
/usr/local/include/SerialStream.h:13:19: error: cassert: No such file or directory
In file included from /usr/local/include/SerialStream.h:14,
                 from /home/cnr/Desktop/GTK/gtkdeneme.c:2:
/usr/local/include/SerialStreamBuf.h:13:18: error: iosfwd: No such file or directory
/usr/local/include/SerialStreamBuf.h:14:21: error: streambuf: No such file or directory


/usr/local/include/ içerisinde SerialStream.h, SerialStreamBuf.h dosyaları mevcut. Zaten sorun bunlar değil görüldüğü üzere. Bu başlık dosyalarının içinden çağrılan string, fstream, cassert, iosfwd, streambuf gibi dosyaları bulamıyor. C/C++ farkının oluşturduğu bir sorun mu acaba? Yoksa bende mi bir şeyler eksik?

eldirr

Bilgisayarda aratıp buldum eksik olan dosyaları ve projeye başlık dosyalarının yollarını ekleyerek hallettim o sorunu. Ama biraz karıştı sanki işler.. Artık eksik dosya hatası vermiyor ama aşağıdaki gibi garip hatalar vermeye başladı. Benim yazdığım koddan kaynaklı bir şey de değil. Eklenen başlık dosyaları hata veriyor...

/usr/include/c++/4.2/bits/c++config.h|149|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/stringfwd.h|46|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/cstddef|53|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/cstring|78|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/cstdlib|104|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/cstdlib|161|error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gnu_cxx'|
/usr/include/c++/4.2/cstdlib|203|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/cstdio|98|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/cstdio|155|error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gnu_cxx'|
/usr/include/c++/4.2/cstdio|179|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/clocale|57|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/cstdarg|58|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/c++locale.h|60|error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gnu_cxx'|
/usr/include/c++/4.2/bits/c++locale.h|67|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/gthr-default.h||In function '__gthread_recursive_mutex_init_function':|
/usr/include/c++/4.2/bits/gthr-default.h|642|error: 'PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)|
/usr/include/c++/4.2/bits/gthr-default.h|642|error: (Each undeclared identifier is reported only once|
/usr/include/c++/4.2/bits/gthr-default.h|642|error: for each function it appears in.)|
/usr/include/c++/4.2/bits/c++io.h|45|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/cctype|68|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/ctime|64|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/cwchar|70|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/cwchar|144|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/cwchar|246|error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gnu_cxx'|
/usr/include/c++/4.2/cwchar|268|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/postypes.h|52|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/functexcept.h|44|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/iosfwd|52|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/stl_pair.h|64|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/cpp_type_traits.h|74|error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gnu_cxx'|
/usr/include/c++/4.2/bits/cpp_type_traits.h|81|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/stl_relops.h|74|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/ext/type_traits.h|44|error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gnu_cxx'|
/usr/include/c++/4.2/bits/stl_iterator_base_types.h|69|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/stl_iterator_base_funcs.h|71|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/stl_iterator.h|72|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/stl_iterator.h|624|error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gnu_cxx'|
/usr/include/c++/4.2/debug/debug.h|47|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/debug/debug.h|52|error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gnu_cxx'|
/usr/include/c++/4.2/debug/debug.h|57|error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gnu_debug'|
/usr/include/c++/4.2/bits/stl_algobase.h|80|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/char_traits.h|49|error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gnu_cxx'|
/usr/include/c++/4.2/bits/char_traits.h|210|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/exception|44|error: expected identifier or '(' before string constant|
/usr/include/c++/4.2/new|49|error: expected identifier or '(' before string constant|
/usr/include/c++/4.2/ext/new_allocator.h|40|error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gnu_cxx'|
/usr/include/c++/4.2/bits/allocator.h|57|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/stl_construct.h|67|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/stl_uninitialized.h|67|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/bits/stl_raw_storage_iter.h|64|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
/usr/include/c++/4.2/limits|150|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|


Hayır bir de o sondaki "||More errors follow but not being shown.|" yazısı, çok moral bozucu :D