Panel użytkownika
Nazwa użytkownika:
Hasło:
Nie masz jeszcze konta?

Code::Blocks.. znowu problem

Ostatnio zmodyfikowano 2009-01-22 16:48
Autor Wiadomość
jimmye
Temat założony przez niniejszego użytkownika
Code::Blocks.. znowu problem
» 2009-01-22 09:42:36
Kurde znowu mam problem z code::blocks, chce skompilowac pewien projekt, ale sa bledy w linkowaniu, podalem sciezke do dodatkowych bibliotek, zainstalowalem Mingw.
Moze to wina tego ze mam przerobiony xp i brakuje czegos? Log kompilacji napisze potem, bo pisze ze szkoly :P
P-3842
DeBugger
» 2009-01-22 12:49:45
Jakiej biblioteki dodatkowej używasz??
P-3845
lynx
» 2009-01-22 14:13:01
Najprawdopodobniej nie skonfigurowałeś projektu do tych bibliotek. Za mało informacji podałeś.
P-3846
DejaVu
» 2009-01-22 14:34:41
Windows raczej nie ma żadnego znaczenia jeśli kompilator się uruchamia i ma on dostęp do plików nagłówkowych.
P-3848
jimmye
Temat założony przez niniejszego użytkownika
Ptypes
» 2009-01-22 14:47:07
Uzywam ptypes, log kompilacji zaraz podam :P kompiluje sie.
A tak poza tym to na starym systemie dzialal mi normalnie, tylko na tym ostatnio zainstalowanym nie..

~~EDIT1:
Wszystko sie kompiluje, plik sie nie tworzy, mam 4 ostrzezenia:

||=== EOSERV, Debug ===|
ESUnit.cpp||In member function `void |
ESUnit.cpp|22|warning: cannot pass objects of |
ESUnit.cpp|22|warning: second parameter of |
ESUnit.cpp||In member function `void |
ESUnit.cpp|38|warning: cannot pass objects of |
ESUnit.cpp|38|warning: second parameter of |
||=== Build finished: 0 errors, 4 warnings ===|
Ostrzezenia dotycza fragmetu:
C/C++
void ESUnit::printf( const string & message,...)
{
    va_list args;
   
    va_start( args, message );
    this->uout->vputf( message, args );
    va_end( args );
    this->uout->puteol();
}
~~EDIT2:
Tego bledu juz nie mam ale.. :
C/C++
--------------Build: Debug in EOSERV---------------

Linking console executable: EOSERV_Debug.exe
D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pstdio.o )(.rdata $ _ZTIN2pt6outstmE + 0x0 )
    : pstdio.cxx
    : multiple definition of ` typeinfo for pt::outstm ' obj\Debug\src\UnitErr.o(.data $ _ZTIN2pt6outstmE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pstdio.o )(.rdata $ _ZTSN2pt6outstmE + 0x0 )
    : pstdio.cxx
    : multiple definition of ` typeinfo name for pt::outstm ' obj\Debug\src\UnitErr.o(.text $ _ZTSN2pt6outstmE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pstdio.o )(.rdata $ _ZTIN2pt6iobaseE + 0x0 )
    : pstdio.cxx
    : multiple definition of ` typeinfo for pt::iobase ' obj\Debug\src\UnitErr.o(.data $ _ZTIN2pt6iobaseE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pstdio.o )(.rdata $ _ZTSN2pt6iobaseE + 0x0 )
    : pstdio.cxx
    : multiple definition of ` typeinfo name for pt::iobase ' obj\Debug\src\UnitErr.o(.text $ _ZTSN2pt6iobaseE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pstdio.o )(.rdata $ _ZTIN2pt9componentE + 0x0 )
    : pstdio.cxx
    : multiple definition of ` typeinfo for pt::component ' obj\Debug\src\ESUnit.o(.data $ _ZTIN2pt9componentE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pstdio.o )(.rdata $ _ZTSN2pt9componentE + 0x0 )
    : pstdio.cxx
    : multiple definition of ` typeinfo name for pt::component ' obj\Debug\src\ESUnit.o(.text $ _ZTSN2pt9componentE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pstdio.o )(.rdata $ _ZTIN2pt7unknownE + 0x0 )
    : pstdio.cxx
    : multiple definition of ` typeinfo for pt::unknown ' obj\Debug\src\Client.o(.data $ _ZTIN2pt7unknownE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pstdio.o )(.rdata $ _ZTSN2pt7unknownE + 0x0 )
    : pstdio.cxx
    : multiple definition of ` typeinfo name for pt::unknown ' obj\Debug\src\Client.o(.text $ _ZTSN2pt7unknownE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pthread.o )(.rdata $ _ZTIN2pt6threadE + 0x0 )
    : pthread.cxx
    : multiple definition of ` typeinfo for pt::thread ' obj\Debug\src\Client.o(.data $ _ZTIN2pt6threadE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pthread.o )(.rdata $ _ZTSN2pt6threadE + 0x0 )
    : pthread.cxx
    : multiple definition of ` typeinfo name for pt::thread ' obj\Debug\src\Client.o(.text $ _ZTSN2pt6threadE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pthread.o )(.rdata $ _ZTIPN2pt9exceptionE + 0x0 )
    : pthread.cxx
    : multiple definition of ` typeinfo for pt::exception * ' obj\Debug\src\main.o(.data $ _ZTIPN2pt9exceptionE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pthread.o )(.rdata $ _ZTSPN2pt9exceptionE + 0x0 )
    : pthread.cxx
    : multiple definition of ` typeinfo name for pt::exception * ' obj\Debug\src\main.o(.text $ _ZTSPN2pt9exceptionE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pthread.o )(.rdata $ _ZTIN2pt9exceptionE + 0x0 )
    : pthread.cxx
    : multiple definition of ` typeinfo for pt::exception ' obj\Debug\src\Client.o(.data $ _ZTIN2pt9exceptionE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pthread.o )(.rdata $ _ZTSN2pt9exceptionE + 0x0 )
    : pthread.cxx
    : multiple definition of ` typeinfo name for pt::exception ' obj\Debug\src\Client.o(.text $ _ZTSN2pt9exceptionE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pinstm.o )(.rdata $ _ZTIPN2pt7estreamE + 0x0 )
    : pinstm.cxx
    : multiple definition of ` typeinfo for pt::estream * ' obj\Debug\src\Client.o(.data $ _ZTIPN2pt7estreamE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pinstm.o )(.rdata $ _ZTSPN2pt7estreamE + 0x0 )
    : pinstm.cxx
    : multiple definition of ` typeinfo name for pt::estream * ' obj\Debug\src\Client.o(.text $ _ZTSPN2pt7estreamE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pinstm.o )(.rdata $ _ZTIN2pt7estreamE + 0x0 )
    : pinstm.cxx
    : multiple definition of ` typeinfo for pt::estream ' obj\Debug\src\Client.o(.data $ _ZTIN2pt7estreamE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pinstm.o )(.rdata $ _ZTSN2pt7estreamE + 0x0 )
    : pinstm.cxx
    : multiple definition of ` typeinfo name for pt::estream ' obj\Debug\src\Client.o(.text $ _ZTSN2pt7estreamE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pvariant.o )(.rdata $ _ZTIN2pt8_objlistE + 0x0 )
    : pvariant.cxx
    : multiple definition of ` typeinfo for pt::_objlist ' obj\Debug\src\Server.o(.data $ _ZTIN2pt8_objlistE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / pasync.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pvariant.o )(.rdata $ _ZTSN2pt8_objlistE + 0x0 )
    : pvariant.cxx
    : multiple definition of ` typeinfo name for pt::_objlist ' obj\Debug\src\Server.o(.text $ _ZTSN2pt8_objlistE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / pasync.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pvariant.o )(.rdata $ _ZTIN2pt8tpodlistIPvLb1EEE + 0x0 )
    : pvariant.cxx
    : multiple definition of ` typeinfo for pt::tpodlist < void *
    , true > ' obj\Debug\src\Server.o(.data $ _ZTIN2pt8tpodlistIPvLb1EEE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / pasync.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pvariant.o )(.rdata $ _ZTSN2pt8tpodlistIPvLb1EEE + 0x0 )
    : pvariant.cxx
    : multiple definition of ` typeinfo name for pt::tpodlist < void *
    , true > ' obj\Debug\src\Server.o(.text $ _ZTSN2pt8tpodlistIPvLb1EEE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / pasync.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pvariant.o )(.rdata $ _ZTIN2pt8_podlistE + 0x0 )
    : pvariant.cxx
    : multiple definition of ` typeinfo for pt::_podlist ' obj\Debug\src\Server.o(.data $ _ZTIN2pt8_podlistE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / pasync.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pvariant.o )(.rdata $ _ZTSN2pt8_podlistE + 0x0 )
    : pvariant.cxx
    : multiple definition of ` typeinfo name for pt::_podlist ' obj\Debug\src\Server.o(.text $ _ZTSN2pt8_podlistE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / pasync.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pvariant.o )(.rdata $ _ZTIN2pt11noncopyableE + 0x0 )
    : pvariant.cxx
    : multiple definition of ` typeinfo for pt::noncopyable ' obj\Debug\src\Server.o(.data $ _ZTIN2pt11noncopyableE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / pasync.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pvariant.o )(.rdata $ _ZTSN2pt11noncopyableE + 0x0 )
    : pvariant.cxx
    : multiple definition of ` typeinfo name for pt::noncopyable ' obj\Debug\src\Server.o(.text $ _ZTSN2pt11noncopyableE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / pasync.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( punit.o )(.rdata $ _ZTIN2pt4unitE + 0x0 )
    : punit.cxx
    : multiple definition of ` typeinfo for pt::unit ' obj\Debug\src\ESUnit.o(.data $ _ZTIN2pt4unitE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( punit.o )(.rdata $ _ZTSN2pt4unitE + 0x0 )
    : punit.cxx
    : multiple definition of ` typeinfo name for pt::unit ' obj\Debug\src\ESUnit.o(.text $ _ZTSN2pt4unitE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pstrlist.o )(.rdata $ _ZTIN2pt8_strlistE + 0x0 )
    : pstrlist.cxx
    : multiple definition of ` typeinfo for pt::_strlist ' obj\Debug\src\Universe.o(.data $ _ZTIN2pt8_strlistE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pstrlist.o )(.rdata $ _ZTSN2pt8_strlistE + 0x0 )
    : pstrlist.cxx
    : multiple definition of ` typeinfo name for pt::_strlist ' obj\Debug\src\Universe.o(.text $ _ZTSN2pt8_strlistE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pstrlist.o )(.rdata $ _ZTIN2pt8tobjlistINS_8_stritemEEE + 0x0 )
    : pstrlist.cxx
    : multiple definition of ` typeinfo for pt::tobjlist < pt::_stritem > ' obj\Debug\src\Universe.o(.data $ _ZTIN2pt8tobjlistINS_8_stritemEEE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( pstrlist.o )(.rdata $ _ZTSN2pt8tobjlistINS_8_stritemEEE + 0x0 )
    : pstrlist.cxx
    : multiple definition of ` typeinfo name for pt::tobjlist < pt::_stritem > ' obj\Debug\src\Universe.o(.text $ _ZTSN2pt8tobjlistINS_8_stritemEEE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( poutfilter.o )(.rdata $ _ZTIN2pt9outfilterE + 0x0 )
    : poutfilter.cxx
    : multiple definition of ` typeinfo for pt::outfilter ' obj\Debug\src\util\ptypesx.o(.data $ _ZTIN2pt9outfilterE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here D:\e oserv\EOSERV\FINAL\ptypes\lib / libptypes.a( poutfilter.o )(.rdata $ _ZTSN2pt9outfilterE + 0x0 )
    : poutfilter.cxx
    : multiple definition of ` typeinfo name for pt::outfilter ' obj\Debug\src\util\ptypesx.o(.text $ _ZTSN2pt9outfilterE + 0x0 )
    : D:/ eoserv / EOSERV / FINAL / ptypes / include / ptypes.h
    : first defined here Process terminated with status 1( 0 minutes, 3 seconds ) 0 errors
        , 0 warnings
P-3850
pekfos
» 2009-01-22 15:04:39
mógłbyś podać cały ten fragment? jedno z ostrzeżeń mówi coś o drugim parametrze
tej funkcji

edit= wygląda to tak jakbyś w gdzieś w kodzie pisał definicje tych funkcji
P-3851
jimmye
Temat założony przez niniejszego użytkownika
» 2009-01-22 15:25:54
Juz jest dobrze tylko jest problem z linkowaniem :| , wyzej podalem log.
P-3852
jimmye
Temat założony przez niniejszego użytkownika
Udalo sie
» 2009-01-22 16:48:12
Nie udalo sie w code blocks, ale udalo sie w dev-cpp :P i mysle ze po rozwiazaniu tego samego problemu w dev-cpp rozwiaze go w cobeblocks :D
P-3854
« 1 »
  Strona 1 z 1