Next Generation Emulation banner
1 - 8 of 8 Posts

·
Registered
Joined
·
57 Posts
Discussion Starter · #1 ·
Hi while compiling the OFFICAL 0.8.1 source code i get the following errors:

gcc -Wall -O2 -fomit-frame-pointer -finline-functions -ffast-math -fno-strict-aliasing -m128bit-long-double -I. -I.. -I../IPU -I../DebugTools -D__LINUX__ -DENABLE_NLS -DPACKAGE=\"pcsx2\" -I../ix86-32 -I../x86 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -c -o ../FiFo.o ../FiFo.c -MD -MF ../FiFo.d
../FiFo.c: In function ‘fifo_get3’:
../FiFo.c:75: error: invalid lvalue in assignment
../FiFo.c: In function ‘fifo_get’:
../FiFo.c:110: error: invalid lvalue in assignment
../FiFo.c: In function ‘fifo_get2’:
../FiFo.c:138: error: invalid lvalue in assignment
make: *** [../FiFo.o] Error 1

i changed (u8*)value(S) to value(but i don't think that's the solution) and it kept compiling till it reached some (char*) in CDVDiso.c so i gave up. i've compiled the same version before i was wondering if an update to my gcc may have caused that.(sould i add something to make command or my Makefile?) If this is not the case can anyone explain what coud be the problem? i believe the problem is in some pointer handling in new compiler but i'm not sure (i'm "new" to programming). (The same errors in CVS if that doesn't bother anyone ;) )

btw: gcc --version gives:
gcc (GCC) 4.0.1 20050727 (Red Hat 4.0.1-5)
 

·
Registered
Joined
·
57 Posts
Discussion Starter · #8 ·
ok in Fifo.c doing (u8*)value+=q in lines 75,110,138 are not correct C/C++ as i undrestand i belive value = (void*)((u8*)value + q); is better way and it works with GCC 4.0.1 am i right? if not some1 give me a clue (my exact word in irc)
 
1 - 8 of 8 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top