I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2012-05-18 03:33:27.550483-07 by refer
NMAKE : fatal error U1077: '"cl.EXE"' : return code '0x2'
Hi experts and authors of Inline module, I rushed into this error "NMAKE : fatal error U1077: '"d:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.EXE"' : return code '0x2'" during ran command "cl -c -I"D:/Work/TaSDK" -I"d:/Work/TaSDK/../../talibs/boost/1.36.0" -I"d:/Program Files/Microsoft Visual Studio 9.0/VC/include" -I"C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include" -D"WIN32" -D"_DEBUG" -D"_CONSOLE" -D"_UNICODE" -D"UNICODE" -Gm -EHsc -W3 -nologo -c -TP -MDd -RTC1 -ZI -Od -DVERSION=\"2.00\" -DXS_VERSION=\"2.00\" "-IC:\Perl\lib\CORE" TaSDK.c .
When I wrote inline c code, the following lines are automatically added to my inline c code. The root cause is that they're inserted into the top of my c file. Why dont we insert/put them bel +ow the "#include xxxx" which exists. #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #include "INLINE.h" so it caused some strange conflict and error for some header files which are written by Microsoft. Like the following errors: d:\program files\microsoft visual studio 9.0\vc\include\iosfwd(522) : warning C4003: not enough ac +tual parameters for macro 'eof' d:\program files\microsoft visual studio 9.0\vc\include\xutility(812) : error C2766: explicit spec +ialization; 'std::iterator_traits<std::_Bool>' has already been defined d:\program files\microsoft visual studio 9.0\vc\include\ostream(527) : error C2059: syntax error : + ')' d:\program files\microsoft visual studio 9.0\vc\include\ostream(584) : see reference to cl +ass template instantiation 'std::basic_ostream<_Elem,_Traits>' being compiled ......... Here is my code snippet: #include <iostream> #include <string> #include <boost/format.hpp> #include <boost/scoped_array.hpp> #include <tchar.h> #include "IDSTypes.h" ......
If those 4 lines are automatically put the 1st line, I would meet that error. Then I moved those 4 flies after the line " #include "IDSTypes.h" ", the compilation is working well. So can we point out where those 4 lines can be put or just put them after the last "#include ... " line? Hopeffully get your reply and helps! Thanks in advance!
Direct Responses: 13723 | Write a response