> /usr/include/c++/x86_64-pc- linux-gnu/bits/gthr-default.h:677: error: expected primary-expression before 'const'
Burada bir "syntax error" görünüyor. İnclude satırlarınızı vs. bir kontrol etmenizde fayda var gibi. 2011/4/7 Mucibirahman İLBUĞA <[email protected]> > Merhabalar, > Dakika 1... Gol 1... :( > > > Pardus 2011 Kurumsal-2 üzerinde C++ öğrenmeye alışıyorum. Aşağıdaki > sayfayı izliyorum: > > http://cartan.cas.suffolk.edu/oopdocbook/opensource/example1.html > > Ancak işin başında hata yedik! > > Aşağıdaki gibi 3 sayfa hata var ekranda :( Ancak hata kaynağının Pardus > olduğunu sanmıyorum. Kütüphane yolu mu belirtmek gerekiyor?!... > > > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:677: error: > expected primary-expression before 'const' > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:677: error: > initializer expression list treated as compound expression > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:678: error: > expected ',' or ';' before '{' token > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:683: error: > '__gthread_mutex_lock' declared as an 'inline' variable > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:683: error: > '__gthread_mutex_t' was not declared in this scope > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:683: error: > 'mutex' was not declared in this scope > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:684: error: > expected ',' or ';' before '{' token > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:692: error: > '__gthread_mutex_trylock' declared as an 'inline' variable > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:692: error: > '__gthread_mutex_t' was not declared in this scope > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:692: error: > 'mutex' was not declared in this scope > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:693: error: > expected ',' or ';' before '{' token > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:701: error: > '__gthread_mutex_unlock' declared as an 'inline' variable > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:701: error: > '__gthread_mutex_t' was not declared in this scope > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:701: error: > 'mutex' was not declared in this scope > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:702: error: > expected ',' or ';' before '{' token > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:711: error: > '__gthread_recursive_mutex_init_function' declared as an 'inline' variable > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:711: error: > '__gthread_recursive_mutex_t' was not declared in this scope > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:711: error: > 'mutex' was not declared in this scope > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr-default.h:712: error: > expected ',' or ';' before '{' token > In file included from /usr/include/c++/ext/atomicity.h:39, > from /usr/include/c++/bits/ios_base.h:46, > from /usr/include/c++/ios:48, > from /usr/include/c++/ostream:45, > from /usr/include/c++/iostream:45, > from fac.cpp:7: > /usr/include/c++/x86_64-pc-linux-gnu/bits/gthr.h:140: error: expected > declaration before end of line > > *** 289 errors, 0 warnings > mucip@parduskurumsal İndirilenler $ mc > > > > > _______________________________________________ > Linux-programlama mailing list > [email protected] > https://liste.linux.org.tr/mailman/listinfo/linux-programlama > Liste kurallari: http://liste.linux.org.tr/kurallar.php >
_______________________________________________ Linux-programlama mailing list [email protected] https://liste.linux.org.tr/mailman/listinfo/linux-programlama Liste kurallari: http://liste.linux.org.tr/kurallar.php
