-- stray '\161' in program
喜欢直接从网上拷贝代码贴到Dev C++中的人肯定会经常遇到 stray '\161' in program 错误,这个错误很令人迷惑不解,其实问题出在代码中掺入了一些不合法的空格(全角空格),把每行代码后的空格删掉即OK了!
-- C++
#include <iostream.h> --> #include<iostream>
cout 改成 std::cout
-- [Error] \mingw\lib\crt2.o:(.text+0x1b5): undefined reference to `__dyn_tls_init_callback'
[Error] C:\Users\desaco\Documents\C-Free\Temp\未命名1.cpp:1:23: fatal error: iostream.h: No such file or directory
-- 配置CFree的mingw路径- http://www.programarts.com/cfree_ch/doc/help/UsingCF/CompilerSupport/MinGW/MinGW2.htm