编译错误 : stray ‘\302’ in program, 等

标签 c compiler-construction

我在编译以下漏洞利用代码时遇到问题:

http://downloads.securityfocus.com/vulnerabilities/exploits/59846-1.c

我正在使用 "gcc file.c""gcc -O2 file.c",但它们都会导致以下错误:

sorbolinux-exec.c: In function ‘sc’:
sorbolinux-exec.c:76: error: stray ‘\302’ in program
sorbolinux-exec.c:76: error: stray ‘\244’ in program
sorbolinux-exec.c:76: error: ‘t’ undeclared (first use in this function)
sorbolinux-exec.c:76: error: (Each undeclared identifier is reported only  once
sorbolinux-exec.c:76: error: for each function it appears in.)

我尝试在 Kali Linux 上编译它们和 Ubuntu 10.04 (Lucid Lynx) 并得到相同的结果。

最佳答案

您在该行中有一个无效字符。这是我看到的:

enter image description here

关于编译错误 : stray ‘\302’ in program, 等,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19198332/

相关文章:

python - python在哪里保存最后一次操作的结果?

c - realloc 如何知道要复制多少?

c# - 什么是/优化 C# 编译器 key ?

c++ - ubuntu下gcc 4.5安装问题

c - struct args 中的函数指针?

c - Strncmp - 错误的逻辑

c - 修改后指针没有改变

c++ - 编译器如何知道 vtable 中的哪个条目对应于虚函数?

parsing - scalac缺少右括号错误报告,行号奇怪

compiler-construction - 为什么 JIT 代码比编​​译或解释的代码消耗更多的内存?