g++ works on windows but not linux?

Hi,

So this builds just fine on my windows machine (using mingw)

but today i tried building it on a VM (VirtualBox running Ubuntu 16.04)

and it outputs the following:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
In file included from ./src/encoder.cpp:1:0:
./include/encoder.h:7:38: fatal error: config_structs\rs_config.h: No such file or directory
compilation terminated.
In file included from ./src/mainer.cpp:3:0:
./include/obj_decoder.h:9:40: fatal error: config_structs\item_config.h: No such file or directory
compilation terminated.
In file included from ./src/obj_decoder.cpp:1:0:
./include/obj_decoder.h:9:40: fatal error: config_structs\item_config.h: No such file or directory
compilation terminated.
In file included from ./include/obj_encoder.h:5:0,
                 from ./src/obj_encoder.cpp:1:
./include/encoder.h:7:38: fatal error: config_structs\rs_config.h: No such file or directory
compilation terminated.


The command i use to build is the following:
 
g++ ./src/*.cpp -std=c++11 -I./include/ -Wall */

(the */ at the end isn't part of the command, it is just some wired autocomplete from the [CODE] tags)

My projects source code is here: https://github.com/stavsen/StavsEditor

Usually i just run the "build-mingw-dos.bat" on my windows machine and everything works fine.

Thanks in advance :)
Last edited on
Linux uses forward slashes in paths.

1
2
#include "config_structs/rs_config.h"
                        ^


Forward slashes works on Windows too so you should always use them when writing portable code.
Topic archived. No new replies allowed.