Thank you for the quick response!
"The files in game/ and cgame/ don't have access to system headers.
They're compiled to bytecode with the bundled lcc."
Ok! So, what can I do to make it work? (or what shall I ask my admin to do?)
>________________________________
> From: Ben Noordhuis <i...@bnoordhuis.nl>
>To: Yasir I. Al-Dosary - zgzg2020™ <yasiraldos...@yahoo.com>; Primary ioquake3
>Discussion/Development list <ioquake3@lists.ioquake.org>
>Sent: Monday, June 18, 2012 2:24 PM
>Subject: Re: [ioquake3] Programming question
>
>On Mon, Jun 18, 2012 at 6:35 AM, Yasir I. Al-Dosary - zgzg2020™
><yasiraldos...@yahoo.com> wrote:
>> Hi,
>> I have a very simple programming question.
>> I am using the time.h library in sv_main.c file. And, it is working totally
>> fine.
>> Now, I am trying to use the time.h library in ioquake3's ai_,main.c file.
>> But, I am getting the below compilation errors.
>> Does anyone know what is wrong?
>>
>> Note: To make sure that sys/time.h file existed, I created a small program
>> that uses sys/time.h library, and compiled it using g++ on the same server
>> as ioquake3. And, it worked totally fine.
>> I am very new to linux, and Makefile. So, I would really appreciate it if
>> you would be clear in your kind explanations.
>>
>> rmc104:~/ioquake3dev_clean[10027]% make USE_LOCAL_HEADERS=0 LDFLAGS='-L.'
>> BASE_CFLAGS=-m32 CFLAGS='-fopenmp -Wall'
>> make[1]: Entering directory `/r/home7/ioquake3dev_clean'
>>
>> Building ioquake3 in build/release-linux-ppc64:
>> PLATFORM: linux
>> ARCH: ppc64
>> VERSION: 1.36
>> COMPILE_PLATFORM: linux
>> COMPILE_ARCH: ppc64
>> CC: cc
>>
>> CFLAGS:
>> -fopenmp
>> -Wall
>> -MMD
>> -m32
>> -DNDEBUG
>> -O3
>> -ffast-math
>> -funroll-loops
>> -fomit-frame-pointer
>>
>> LDFLAGS:
>> -L.
>>
>> LIBS:
>> -ldl
>> -lm
>>
>> Output:
>> build/release-linux-ppc64/ioq3ded.ppc64
>> build/release-linux-ppc64/ioquake3.ppc64
>> build/release-linux-ppc64/baseq3/cgameppc64.so
>> build/release-linux-ppc64/baseq3/qagameppc64.so
>> build/release-linux-ppc64/baseq3/uippc64.so
>> build/release-linux-ppc64/missionpack/cgameppc64.so
>> build/release-linux-ppc64/missionpack/qagameppc64.so
>> build/release-linux-ppc64/missionpack/uippc64.so
>> build/release-linux-ppc64/baseq3/vm/cgame.qvm
>> build/release-linux-ppc64/baseq3/vm/qagame.qvm
>> build/release-linux-ppc64/baseq3/vm/ui.qvm
>> build/release-linux-ppc64/missionpack/vm/qagame.qvm
>> build/release-linux-ppc64/missionpack/vm/cgame.qvm
>> build/release-linux-ppc64/missionpack/vm/ui.qvm
>>
>> make[2]: Entering directory `/r/home7/ioquake3dev_clean'
>> make[2]: `build/release-linux-ppc64/ioq3ded.ppc64' is up to date.
>> make[2]: `build/release-linux-ppc64/ioquake3.ppc64' is up to date.
>> make[2]: `build/release-linux-ppc64/baseq3/cgameppc64.so' is up to date.
>> make[2]: `build/release-linux-ppc64/baseq3/qagameppc64.so' is up to date.
>> make[2]: `build/release-linux-ppc64/baseq3/uippc64.so' is up to date.
>> make[2]: `build/release-linux-ppc64/missionpack/cgameppc64.so' is up to
>> date.
>> make[2]: `build/release-linux-ppc64/missionpack/qagameppc64.so' is up to
>> date.
>> make[2]: `build/release-linux-ppc64/missionpack/uippc64.so' is up to date.
>> make[2]: `build/release-linux-ppc64/baseq3/vm/cgame.qvm' is up to date.
>> GAME_Q3LCC code/game/ai_main.c
>> cpp: code/game/ai_main.c:2712 Could not find include file <sys/time.h>
>> make[2]: *** [build/release-linux-ppc64/baseq3/game/ai_main.asm] Error 1
>> make[2]: Leaving directory `/r/home7/ioquake3dev_clean'
>> make[1]: *** [targets] Error 2
>> make[1]: Leaving directory `/r/home7/ioquake3dev_clean'
>> make: *** [release] Error 2
>
>The files in game/ and cgame/ don't have access to system headers.
>They're compiled to bytecode with the bundled lcc.
>
>
>
_______________________________________________
ioquake3 mailing list
ioquake3@lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.