我知道你说有没有悬挂的extern“C” ...但是,为什么,即使是一个问题给你如何与GCC编译而不是克++ ???(这将在事实上,愉快地对待smsdk_ext.cpp为ç和NOT C++文件......与所有的都这样做的错误和痛苦...)
你经常会看到这样的错误消息时错误包括文件的标签的extern“C”。 (或不正确标记视情况而定。)
你的错误信息也表明难度重载函数...
platform.h: In function ‘double fsel(double, double, double)’:
platform.h:470: error: declaration of C function 'double fsel(double, double, double)'
conflicts with
platform.h:466: error: previous declaration 'float fsel(float, float, float)'
和问题与系统(编译器)文件。
In file included from /usr/include/sys/signal.h:104,
from /usr/include/signal.h:5,
from /usr/include/pthread.h:15,
from /cygdrive/...
/usr/include/cygwin/signal.h:74: error: expected ‘;’ before ‘*’ token
/usr/include/cygwin/signal.h:97: error: ‘uid_t’ does not name a type
In file included from /usr/include/signal.h:5,
from /usr/include/pthread.h:15,
from /cygdrive/...
/usr/include/sys/signal.h:163: error: ‘pthread_t’ was not declared in this scope
/usr/include/sys/signal.h:163: error: expected primary-expression before ‘int’
/usr/include/sys/signal.h:163: error: initializer expression list treated as compound expression
因此,无论你的编译器的安装实在是被改写的OR ...
或者,另一种方法是先从最小的Hello World程序,看看是否有编译。然后建立起来,包括你需要的东西,直到你遇到问题。 (或者利用现有的软件和简化它,直到找到问题区域。先从一个“G ++”线,复制文件,并削减了下去,直到问题消失。也许你有一个的#define或的typedef与在系统文件中一些冲突。)
回答你的括号问题:使用MinTTY终端(它有一个Cygwin软件包);它比标准的Windows更友好。但是,即使在Windows终端中,您也可以获得一个回滚缓冲区 - 单击窗口图标以获取菜单,选择属性,然后在那里设置“屏幕缓冲区大小”。给出一个非常大的高度,然后你可以向上滚动。 – 2010-11-07 01:39:50
你究竟在编译什么,会抛出所有这些错误?一些示例代码在这里很有用。 – 2010-11-07 01:41:17
谢谢,MinTTY比标准Cygwin好得多。这里是我所有日志的粘贴,它基本上只是一个小插件,但这发生在我尝试使用此SDK进行编译的任何事情上。我之前在Ubuntu上遇到过这些问题,但构建 - 必要的修复了它。我假设一些包已关闭。 http://www.ampaste.net/m3d0a864f – 2010-11-07 02:25:55