Hi, What is the difference between this two settings?

Discussion about CodeLite development process and patches
fanhe0513
CodeLite Enthusiast
Posts: 39
Joined: Sat Aug 21, 2010 7:32 pm
Genuine User: Yes
IDE Question: c++
Contact:

Hi, What is the difference between this two settings?

Post by fanhe0513 »

What is the difference between 'C Compiler Options' and 'C++ Compiler Options'?
You do not have the required permissions to view the files attached to this post.
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Hi, What is the difference between this two settings?

Post by DavidGH »

Hi,

Only the obvious one: the contents of the first is used to compile foo.c; of the second to compile bar.cpp.

Most of the time the contents will be the same, but having the two fields gives you the flexibility to make them different if you wish. e.g. In theory 'C Compiler Options' should use 'wx-config --cflags' and and 'C++ Compiler Options' 'wx-config --cxxflags'. In practice this doesn't matter as wx-config produces the same output for both.

Regards,

David
Post Reply