|
|
back to boardCommon Boardcompilation error I have often encountered following floating errors like that: sqrt(2):ambiguious call ? so I have to replace it with sqrt(double(2)) or sqrt(2.0) but actually, many other compilers treat it alright, Re: compilation error -- I ABSOLUTELY AGREE (+list of errors) I have also -T-I-R-E-D- gettings those f**king 'compilation errors', especially at online contests when they lead to the bunch of the penalty time!!! Here's my list of comp. errors. Here I omitted the repeated ones (e.g. I got ambiguity for sqrt() three or four times, the same goes to the 'undefined identifier' error) ALL OF THEM COMPILED OK on both my home and university Microsoft VC++ 6.0 (w/ and w/o SP3) temp\18560(20) : error C2668: 'sqrt' : ambiguous call to overloaded function 17751.obj : error LNK2001: unresolved external symbol _strdup temp\17391(3) : error C2169: 'abs' : intrinsic function, cannot be defined temp\16940(37) : error C2065: 'i' : undeclared identifier [there was the fragment like this: for(int i=0;i<N;i++) {/* ... */} i=0 /* C2065 */ ] temp\12991(131) : error C2440: 'argument' : cannot convert from 'const class Matrix' to 'class Matrix &' [ there were *NO* const-modifier conversions ] temp\6431(41) : error C2668: 'acos' : ambiguous call to overloaded function temp\5511(8) : fatal error C1083: Cannot open include file: 'malloc.h': No such file or directory [WTF??? that's an ANSI standart header file!!] temp\5416(88) : fatal error C1004: unexpected end of file found e:\judge\include\memory(9) : fatal error C1083: Cannot open include file: 'xmemory': No such file or directory e:\judge\include\streambuf(9) : fatal error C1083: Cannot open include file: 'xlocnum': No such file or directory what's the damn old C++ compiler do you use?? I wonder that's MSVC4.2 or even older.. It even doesn't support STL (standrat template library), and we have to rewrite lists, queues, trees, Balanced-trees and other unpretty to code stuff again and again. P.S. Nevertheless I want to thank you that you didn't choose DOS16 platform and BorlandC 3.1 and BorlandPascal 7.0 as compilers, as they did it on ACM Northeastern Quarter & Half. That would be MUCH worse to think of 64Kb barrier, of 16bit integer's and other damn things :) actually, I use BC 3.1 at home the VC compiler is too slow to compile a file, and difficult to handle all the projects and workspaces,so I prefer BC 3.1, it's sooooooooo fast, but I have to use 16bit integers, and 64k memory to debug at most, another alternative comiler is Djgpp(gcc under dos), it's powerful, but compile not as fast as bc 3.1 Projects? Workspaces??? I use cmdline. "cl /MD file.cpp" works extremly fast. (-) > the VC compiler is too slow to compile a file, and > difficult to handle all the projects and workspaces,so I > prefer BC 3.1, it's sooooooooo fast, but I have to use > 16bit integers, and 64k memory to debug at most, > another alternative comiler is Djgpp(gcc under dos), it's > powerful, but compile not as fast as bc 3.1 I never use cmdline, I prefer IDE IDE is too good, and I can't live without it, I don't want to recite all the compiler options, and using an editor to edit my program, then quit, then compile, then debug, then maybe change code again, it's too terrible. btw /mt means multi thread? |
|
|