Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

G++和C++的区别和G++的编译参数

Posted by kekehuoshan at 2010-04-27 10:38:19
新人刚开始做题,我的练习机器是CentOS 5.4,gcc4.1和4.4共存。
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
gcc version 4.4.0 20090514 (Red Hat 4.4.0-6) (GCC)
做题时发现用g++编译没错误,用G++提交是Compile Errorstrlen没定义,看了下FAQ用g++44就看到发现自己的问题是g++版本不对。
Q1:
G++和C++的区别(in FAQ?)?看到很多人在两种提交下得到不同结果,有什么要注意的么?
Q2:
不知道online judge编译时参数是什么?g++ Main.cc -o Main -O2 -Wall -lm --static -DONLINE_JUDGE么?

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator