c++ - Porting Linux compatible project from Windows to Linux -


in company i'm working @ develop on windows, visual studio, , cross compile linux using eclipse. our final application runs on linux. i'm trying convince them how easy , fast build on linux instead of using old cross compiler , having sort of weird bugs. of bugs vanish when compile them later versions of gcc on linux. since cross compiler old cannot use c++11 features.

one major problem have since our projects developed on windows i'm having hard time formatting headers! example assume have folder named io header file demo.h in it. this

 #include <io\demo.h> 

works fine on windows. on linux doesn't because windows not case sensitive , both \ , / work on windows. on linux must this

#include <io/demo.h> 

otherwise error can't find specified header file. have more 20 main project working on , each 1 around 3-4 gb. i've modified 1 of them. took me around 7 hours it.

are there tools me make transition faster?

our source code 95% c++ , rest c.

edit:

off topic? sweet jesus

edit2:

here very similar question mine.

to mikecat, πάντα ῥεῖ, alexander o'mara, iinspectable, andrew medico :

run guys, go down vote hell , mark off-topic.

the official standard use / file path separator c-preprocessor resolve paths in #include statements.

the usage of \ seems msvc extension.


the official tools solve such problems large code bases under linux, sed , awk.


fixing case sensitivity bit of tough thing, done using trickery matching results find ...


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo