Newsgroup: it.comp.programmare.win32
Titolo: VC 2005: delirio di roba mancante

Salve,
premetto che è da poco che uso per lavoro VC++ e sono passato alla
2005 proprio ieri, per compilare un progetto che incapsula il
TrueCrypt. Ho avuto numerosi problemi con librebrie mancanti, prima per
i problemi relativi alle bufferunderrun*.lib e poi per alcune librerie
grafiche.
Alla fine sono rimasto con i seguenti errori del linker che nn riesco a
risolvere, qualcuno ha idea di cosa dovrei linkare?
Milllle grazie in anticipo,
Matteo
3>REDTICK.obj : error LNK2019: unresolved external symbol
__imp__DeleteObject@4 referenced in function _RedTick@16
3>DLGCODE.obj : error LNK2001: unresolved external symbol
__imp__DeleteObject@4
3>REDTICK.obj : error LNK2019: unresolved external symbol
__imp__LineTo@12 referenced in function _RedTick@16
3>REDTICK.obj : error LNK2019: unresolved external symbol
__imp__MoveToEx@16 referenced in function _RedTick@16
3>REDTICK.obj : error LNK2019: unresolved external symbol
__imp__SelectObject@8 referenced in function _RedTick@16
3>DLGCODE.obj : error LNK2001: unresolved external symbol
__imp__SelectObject@8
3>REDTICK.obj : error LNK2019: unresolved external symbol
__imp__CreatePen@12 referenced in function _RedTick@16
3>REDTICK.obj : error LNK2019: unresolved external symbol
__imp__GetStockObject@4 referenced in function _RegisterRedTick
3>TCFORMAT.obj : error LNK2019: unresolved external symbol
__imp__ShellExecuteA@24 referenced in function _OpenPageHelp
3>DLGCODE.obj : error LNK2001: unresolved external symbol
__imp__ShellExecuteA@24
3>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__CreateFontIndirectA@4 referenced in function _InitDialog
3>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__GetDeviceCaps@8 referenced in function _InitDialog
3>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__SetMapMode@8 referenced in function _CreateMemBitmap
3>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__CreateCompatibleDC@4 referenced in function _CreateMemBitmap
3>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__BitBlt@36 referenced in function _PaintBitmap
3>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__GetObjectA@12 referenced in function _PaintBitmap
3>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__GetCurrentObject@8 referenced in function _PaintBitmap
3>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__GetOpenFileNameA@4 referenced in function _BrowseFiles
3>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__SHGetPathFromIDListA@8 referenced in function _BrowseDirectories
3>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__SHBrowseForFolderA@4 referenced in function _BrowseDirectories
3>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__SHGetMalloc@4 referenced in function _BrowseDirectories
3>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__SHGetFileInfoA@20 referenced in function
_OpenVolumeExplorerWindow
3>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__SHChangeNotify@16 referenced in function _BroadcastDeviceChange
3>Debug/TrueCryptLibrary.dll : fatal error LNK1120: 20 unresolved
externals

Intanto mancava la gdi32.lib
Ora sono rimasto solo con
1>TCFORMAT.obj : error LNK2019: unresolved external symbol
__imp__ShellExecuteA@24 referenced in function _OpenPageHelp
1>DLGCODE.obj : error LNK2001: unresolved external symbol
__imp__ShellExecuteA@24
1>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__GetOpenFileNameA@4 referenced in function _BrowseFiles
1>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__SHGetPathFromIDListA@8 referenced in function _BrowseDirectories
1>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__SHBrowseForFolderA@4 referenced in function _BrowseDirectories
1>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__SHGetMalloc@4 referenced in function _BrowseDirectories
1>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__SHGetFileInfoA@20 referenced in function
_OpenVolumeExplorerWindow
1>DLGCODE.obj : error LNK2019: unresolved external symbol
__imp__SHChangeNotify@16 referenced in function _BroadcastDeviceChange
1>Debug/TrueCryptLibrary.dll : fatal error LNK1120: 7 unresolved
externals
M

 __imp__SHChangeNotify@16 referenced in function _BroadcastDeviceChange
Aggiungi shell32.lib
-- 
Costantino Grana 

il Platform SDK è a parte (si vede che non hai seguito fino in fondo le
istruzioni di installazione, male male :P )
-- 
questo articolo e` stato inviato via web dal servizio gratuito 
http://www.newsland.it/news
 segnala gli abusi ad 
ab...@newsland.it

Ciao,
a dire la verità il PSDK è già installato, ma credo ci siano casini
con le cartelle, o con il progetto originale, che era fatto x VC 2003
(mi pare), fatto sta che ho dovuto aggiungere a mano in Properties (del
prj)/Configuration/Linker/Additional Dependencies le librerie.
E' giusto o dovevo fare in un altro modo?
Grazie x i consigli e ciao!
Matteo
http://www.memoriedalbuio.com
