Difference between revisions of "Talk:SlashTHEM"

From NetHackWiki
Jump to navigation Jump to search
(Problems compiling?)
Line 14: Line 14:
 
:It seams FreeBSD is using "LLVM/Clang" now instead of gcc. You'll likely get more errors. You could try using a different compiler? On linux it works with gcc version 4.8.2. You could also try with "make -i", it will ignore all errors.--[[User:Quantum Immortal|Quantum Immortal]] ([[User talk:Quantum Immortal|talk]]) 00:38, 19 April 2015 (UTC)
 
:It seams FreeBSD is using "LLVM/Clang" now instead of gcc. You'll likely get more errors. You could try using a different compiler? On linux it works with gcc version 4.8.2. You could also try with "make -i", it will ignore all errors.--[[User:Quantum Immortal|Quantum Immortal]] ([[User talk:Quantum Immortal|talk]]) 00:38, 19 April 2015 (UTC)
 
::I tried switching to gcc, and that didn't help.  Return 0 didn't work either.  Make -i compiled everything <b>except</b> for the slashthem executable... <span style="background:green;border-radius:15px 0 0 8px">[[user:Elronnd|Elronnd]]</span><span style="background: orange;border-radius:0 8px 15px 0">[[user_talk:Elronnd|(talk)]]</span> 20:50, 19 April 2015 (UTC)
 
::I tried switching to gcc, and that didn't help.  Return 0 didn't work either.  Make -i compiled everything <b>except</b> for the slashthem executable... <span style="background:green;border-radius:15px 0 0 8px">[[user:Elronnd|Elronnd]]</span><span style="background: orange;border-radius:0 8px 15px 0">[[user_talk:Elronnd|(talk)]]</span> 20:50, 19 April 2015 (UTC)
 +
 +
:::Are you sure you didn't forgot to save when you put that 0? It compiled fine here. What was the error this time? try with "1" too (it compiles with that too here). Try with different versions of gcc... probably close to 4.8.2 or the oldest one of the ones available. You should stick with gcc however, they will be less errors. You really used gcc? You have to edit ./src/Makefile. By setting the variable CC you'll force it to use a specific compiler (you can have several versions of gcc installed). Line 59 and bellow they are some stuff you could try. Just comment out "return;" for now( compiles here), see if they are more errors. By commenting out, try to find all the errors. Ask Amy( try also with slashem extended) and the guys of slashthem.--[[User:Quantum Immortal|Quantum Immortal]] ([[User talk:Quantum Immortal|talk]]) 23:37, 19 April 2015 (UTC)

Revision as of 23:37, 19 April 2015

Problems compiling?

I'm running FreeBSD 10.1 prerelease and I got the following

apply.c:4111:4: error: non-void function 'doapply' should return a value

               [-Wreturn-type]

                        return;

Any help? Elronnd(talk) 21:35, 18 April 2015 (UTC)

I can't really help...
Hmmm, try "return 0;" ??? in ./src/apply.c line 4111.
It seams FreeBSD is using "LLVM/Clang" now instead of gcc. You'll likely get more errors. You could try using a different compiler? On linux it works with gcc version 4.8.2. You could also try with "make -i", it will ignore all errors.--Quantum Immortal (talk) 00:38, 19 April 2015 (UTC)
I tried switching to gcc, and that didn't help. Return 0 didn't work either. Make -i compiled everything except for the slashthem executable... Elronnd(talk) 20:50, 19 April 2015 (UTC)
Are you sure you didn't forgot to save when you put that 0? It compiled fine here. What was the error this time? try with "1" too (it compiles with that too here). Try with different versions of gcc... probably close to 4.8.2 or the oldest one of the ones available. You should stick with gcc however, they will be less errors. You really used gcc? You have to edit ./src/Makefile. By setting the variable CC you'll force it to use a specific compiler (you can have several versions of gcc installed). Line 59 and bellow they are some stuff you could try. Just comment out "return;" for now( compiles here), see if they are more errors. By commenting out, try to find all the errors. Ask Amy( try also with slashem extended) and the guys of slashthem.--Quantum Immortal (talk) 23:37, 19 April 2015 (UTC)