Tremulous Forum
Community => Servers => Topic started by: lambda on December 29, 2009, 09:41:47 pm
-
Hi,
I have a relatively fast computer (2Ghz dual core, 64-bit) installed with windows 7 and ubuntu 9.10. I began to modify the source on DOS, and compiled it with MinGW; Everything worked out fine. On the other hand with ubuntu, i get this error:
UI_CC src/ui/ui_syscalls.c
LD build/release-linux-x86_64/base/uix86_64.so
CGAME_Q3LCC src/cgame/cg_main.c
cpp: src/cgame/../game/bg_lib.h:28 src/cgame/../qcommon/q_shared.h:105 src/cgame) in #if/#elsifsrc/cgame/cg_main.c:27 Bad operator (
cpp: src/cgame/../game/bg_public.h:27 src/cgame/cg_local.h:27 src/cgame/cg_main.c:27 Syntax error in #include
cpp: src/cgame/../game/bg_public.h:80 src/cgame/cg_local.h:27 src/cgame/cg_main.) in #if/#elsifor (
cpp: src/cgame/../game/bg_public.h:1270 src/cgame/cg_local.h:27 src/cgame/cg_main.c:27 Syntax error in #ifdef/#ifndef
make[2]: *** [build/release-linux-x86_64/base/cgame/cg_main.asm] Error 1
make[2]: Leaving directory `/home/lambda/Desktop/sbsrc'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/home/lambda/Desktop/sbsrc'
make: *** [release] Error 2
This source compiled fine on windows 7, but not ubuntu. It appears as if cg_main.c has an issue. What do you suggest? Many thanks,
λάβδα
-
What changes did you make, and what are you compiling?
-
What changes did you make, and what are you compiling?
Thanks for your reply David,
I'm compiling the new source of tremulous 1.2. I did not modify the source when i transfered it via USB from windows to Ubuntu.I believe it is a issue with the compiler. What do you think i'm missing?
-
...i transfered it via USB from windows to Ubuntu...
Do you have the DOS-style CRLF line endings in the files ? I don't know if the LCC compiler can handle them on linux.
-
Gimhael,
Thanks for your reply! That was the problem. It will take a while to re-code all those. Many thanks.
-
Gimhael,
Thanks for your reply! That was the problem. It will take a while to re-code all those. Many thanks.
Please add [SOLVED] to the title of your first post so others can see that your problem was solved without reading through all these posts. I also was very glad when I found this thread where not a single person yelled, trolled, or got upset about anything. Iambda even said thank you after everyone posted a reply :)
Thanks,
Kiwi