由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - help!how to program C and C++(mixed)
相关主题
相关话题的讨论汇总
话题: c++话题: mixed话题: program话题: unix话题: overloding
进入Unix版参与讨论
1 (共1页)
t***r
发帖数: 47
1
I inserted a segment of C++(including "class definition" and
"operator overloding" )code in C, but I could not make it on
UNIX(using g++)! Can you help me?
w*****n
发帖数: 94
2
some points to note:
1) compile your main function with g++
2) guard your C function name with extern "C" {}

【在 t***r 的大作中提到】
: I inserted a segment of C++(including "class definition" and
: "operator overloding" )code in C, but I could not make it on
: UNIX(using g++)! Can you help me?

1 (共1页)
进入Unix版参与讨论
相关主题
相关话题的讨论汇总
话题: c++话题: mixed话题: program话题: unix话题: overloding