我有一些C ++代码,在32位Windows XP上生成一个DLL。在64位Windows 7下移植项目,我只获取目标文件,但没有DLL,也没有错误消息。
除Windows版本外,两个系统中使用的工具大致相同:
makefile和CodeBlocks的配置文件是相同的。
我在Windows XP上从gcc获得的警告无关紧要。 这些是我在Windows 7上从gcc获得的警告,它们似乎没有相关性:
S:\include\CThread.h|58|warning: attribute ignored in declaration of 'class DFS::Infrastructure::CThread'|
S:\include\CThread.h|58|warning: attribute for 'class DFS::Infrastructure::CThread' must follow the 'class' keyword|
S:\sw\WRXLL\CExcelSpreadsheet.cpp||In member function 'void CExcelSpreadSheet::SetCellFormat()':|
S:\sw\WRXLL\CExcelSpreadsheet.cpp|641|warning: deprecated conversion from string constant to 'CHAR*'|
S:\include\CThread.h|58|warning: attribute ignored in declaration of 'class DFS::Infrastructure::CThread'|
S:\include\CThread.h|58|warning: attribute for 'class DFS::Infrastructure::CThread' must follow the 'class' keyword|
S:\include\CThread.h|58|warning: attribute ignored in declaration of 'class DFS::Infrastructure::CThread'|
S:\include\CThread.h|58|warning: attribute for 'class DFS::Infrastructure::CThread' must follow the 'class' keyword|
S:\sw\WRXLL\FunctionImpl.cpp||In function 'void RetrieveAllRuns()':|
S:\sw\WRXLL\FunctionImpl.cpp|135|warning: unused variable 'BrakesHeaderFound'|
S:\include\CThread.h|58|warning: attribute ignored in declaration of 'class DFS::Infrastructure::CThread'|
S:\include\CThread.h|58|warning: attribute for 'class DFS::Infrastructure::CThread' must follow the 'class' keyword|
S:\sw\WRXLL\FunctionDef.h|137|warning: missing braces around initializer for 'char [256]'|
S:\sw\WRXLL\MenuDef.h|58|warning: missing braces around initializer for 'char [255]'|
S:\sw\WRXLL\MenuDef.h|91|warning: missing braces around initializer for 'char [255]'|
S:\include\CThread.h|58|warning: attribute ignored in declaration of 'class DFS::Infrastructure::CThread'|
S:\include\CThread.h|58|warning: attribute for 'class DFS::Infrastructure::CThread' must follow the 'class' keyword|
S:\sw\WRXLL\main.cpp||In function 'xloper* xlAddInManagerInfo(xloper*)':|
S:\sw\WRXLL\main.cpp|247|warning: deprecated conversion from string constant to 'char*'|
||=== Build finished: 0 errors, 16 warnings ===|
让我感到惊讶的是,我没有得到任何关于没有生成DLL的事实的错误(我确实在整个硬盘上查找它,以防它放在其他地方)。
就像连接器根本没有被调用一样......
在Windows7上创建一个单独的虚拟项目我得到了DLL。所以这不是工具的错误。
感谢您的任何提示!