• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Compiling with -g?

Mjmackan

Mapper ~ Writer
Premium User
Joined
Jul 18, 2009
Messages
1,424
Solutions
15
Reaction score
177
Location
Sweden
How to compile with -g in ubuntu?

I'm getting an error with:

Code:
make: invalid option -- 'g'
Usage: make [options] [target] ...
Options:
Tried to add -g flag onto cmake but didn't succeed or maybe misplaced?!
 
I think i succeeded with the compilation but when trying to run the server from gdb it gives me an error of missing config.lua?
> Loading config
[Error - ConfigManager::load] cannot open config.lua: No such file or directory
ERROR: Unable to load config.lua!
> No services running. The server is NOT online.
[Thread 0x7ffff5743700 (LWP 9026) exited]
[Thread 0x7ffff5f44700 (LWP 9025) exited]

However i can run the debug version of tfs as normal but Im not aware if it still logs the fault when crashing then?
 
Back
Top