[Qt-interest] error while compiling .NET Wrapper
lclclc at tin.it
lclclc at tin.it
Mon Jul 26 16:09:02 CEST 2010
I am trying to compile yout wrapper example in VS2008 but I receive back the following warnings and errors
------ Rebuild All started: Project: lib, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'lib', configuration 'Debug|Win32'
Performing Custom Build Step
Compiling...
cl : Command line warning D9035 : option 'clr:oldsyntax' has been deprecated and will be removed in a future release
moc_worker.cpp
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(301) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(302) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(303) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(304) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(305) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(306) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(307) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(308) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(310) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(311) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(312) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(314) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(315) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(316) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(317) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(318) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(319) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(320) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(321) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(322) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(323) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(325) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(326) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(328) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
worker.cpp
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(301) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(302) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(303) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(304) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(305) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(306) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(307) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(308) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(310) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(311) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(312) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(314) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(315) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(316) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(317) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(318) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(319) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(320) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(321) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(322) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(323) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(325) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(326) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(328) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
tools.cpp
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(301) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(302) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(303) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(304) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(305) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(306) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(307) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(308) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(310) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(311) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(312) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(314) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(315) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(316) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(317) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(318) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(319) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(320) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(321) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(322) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(323) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(325) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(326) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(328) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
networker.cpp
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(301) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(302) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(303) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(304) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(305) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(306) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(307) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(308) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(310) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(311) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(312) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(314) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(315) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(316) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(317) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(318) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(319) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(320) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(321) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(322) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(323) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(325) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(326) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
c:\qt\4.6.0\include\qtcore\../../src/corelib/tools/qchar.h(328) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
Generating Code...
Linking...
tools.obj : error LNK2028: unresolved token (0A00035D) "public: static class QString __cdecl QString::fromWCharArray(wchar_t const *,int)" (?fromWCharArray at QString@@$$FSA?AV1 at PB_WH@Z) referenced in function "class QString __clrcall StringToQString(class System::String ^)" (?StringToQString@@$$FYM?AVQString@@P$AAVString at System@@@Z)
tools.obj : error LNK2019: unresolved external symbol "public: static class QString __cdecl QString::fromWCharArray(wchar_t const *,int)" (?fromWCharArray at QString@@$$FSA?AV1 at PB_WH@Z) referenced in function "class QString __clrcall StringToQString(class System::String ^)" (?StringToQString@@$$FYM?AVQString@@P$AAVString at System@@@Z)
lib.dll : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://c:\Qt\4.6.0\examples\activeqt\dotnet\wrapper\lib\Debug\BuildLog.htm"
lib - 3 error(s), 97 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
what can I change in my project file that is here attached
Thanks
Luigi Casalegno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100726/7e0d47c5/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lib.vcproj
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100726/7e0d47c5/attachment.pl
More information about the Qt-interest-old
mailing list