Problems/warnings compiling r56

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Problems/warnings compiling r56

Post by Enjay »

Can anyone tell me what to do to resolve these?

Code: Select all

SPC_DSP.cpp
.\snes_spc\SPC_DSP.cpp(158) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
spc.cpp

Code: Select all

load_wav.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_wav.cpp': No such file or directory
load_umx.cpp
load_ult.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_ult.cpp': No such file or directory
load_stm.cpp
load_s3m.cpp
load_ptm.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_ptm.cpp': No such file or directory
load_psm.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_psm.cpp': No such file or directory
load_okt.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_okt.cpp': No such file or directory
load_mtm.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_mtm.cpp': No such file or directory
load_mt2.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_mt2.cpp': No such file or directory
load_mod.cpp
load_med.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_med.cpp': No such file or directory
load_mdl.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_mdl.cpp': No such file or directory
load_j2b.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_j2b.cpp': No such file or directory
load_it.cpp
load_far.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_far.cpp': No such file or directory
Generating Code...
Compiling...
load_dsm.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_dsm.cpp': No such file or directory
load_dmf.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_dmf.cpp': No such file or directory
load_dbm.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_dbm.cpp': No such file or directory
load_ams.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_ams.cpp': No such file or directory
load_amf.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_amf.cpp': No such file or directory
load_669.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\modplug\load_669.cpp': No such file or directory
fastmix.cpp
I'm guessing that the second lot is an indication that I don't have a library or something seeing as how there are so many modplug related errors.
RazTK
Posts: 52
Joined: Sun Jan 15, 2006 16:02
Location: Israel
Contact:

Post by RazTK »

No, it's just that Graf forgot to remove those files from the project. You can find them under 'zdoom' -> 'Audio Files' -> 'Modplug'.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

So, I just go into the solution explorer, navigate to that section and delete the files listed above from there?

As for the fist error, I assume thats something that needs to be addressed at the code level? (I just noticed it in Zdoom too so I'll report it over there.)
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Sorry, I am doing most my work on a private project and copy the changes to the public one but this time I apparently forgot it. Since I am in the middle of testing something this will have to wait. Just delete the files in question from the project and all should be fine.
User avatar
MartinHowe
Posts: 154
Joined: Tue Aug 30, 2005 22:07
Location: East Suffolk (UK)

Post by MartinHowe »

Enjay wrote:As for the first error, I assume that's something that needs to be addressed at the code level? (I just noticed it in Zdoom too so I'll report it over there.)
This is just the compiler warning you of using "-" on an unsigned integer; presumably that constant was originally used in 2's complement signed arithmetic somewhere deep in the bowels of some IO chip register where it didn't matter one bit - literally.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

Gosh darnit! I thought r57 was going to compile then right at the last minute I got this:

Code: Select all

Linking...
music_spc.obj : error LNK2019: unresolved external symbol "public: void __thiscall SPC_Filter::run(short *,int)" (?run@SPC_Filter@@QAEXPAFH@Z) referenced in function "protected: static bool __fastcall SPCSong::FillStream(class SoundStream *,void *,int,void *)" (?FillStream@SPCSong@@KI_NPAVSoundStream@@PAXH1@Z)
music_spc.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall SNES_SPC::play(int,short *)" (?play@SNES_SPC@@QAEPBDHPAF@Z) referenced in function "protected: static bool __fastcall SPCSong::FillStream(class SoundStream *,void *,int,void *)" (?FillStream@SPCSong@@KI_NPAVSoundStream@@PAXH1@Z)
music_spc.obj : error LNK2019: unresolved external symbol "public: void __thiscall SNES_SPC::clear_echo(void)" (?clear_echo@SNES_SPC@@QAEXXZ) referenced in function "public: __thiscall SPCSong::SPCSong(struct _iobuf *,char *,int)" (??0SPCSong@@QAE@PAU_iobuf@@PADH@Z)
music_spc.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall SNES_SPC::load_spc(void const *,long)" (?load_spc@SNES_SPC@@QAEPBDPBXJ@Z) referenced in function "public: __thiscall SPCSong::SPCSong(struct _iobuf *,char *,int)" (??0SPCSong@@QAE@PAU_iobuf@@PADH@Z)
music_spc.obj : error LNK2019: unresolved external symbol "public: __thiscall SPC_Filter::SPC_Filter(void)" (??0SPC_Filter@@QAE@XZ) referenced in function "public: __thiscall SPCSong::SPCSong(struct _iobuf *,char *,int)" (??0SPCSong@@QAE@PAU_iobuf@@PADH@Z)
music_spc.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall SNES_SPC::init(void)" (?init@SNES_SPC@@QAEPBDXZ) referenced in function "public: __thiscall SPCSong::SPCSong(struct _iobuf *,char *,int)" (??0SPCSong@@QAE@PAU_iobuf@@PADH@Z)
../gzdoom.exe : fatal error LNK1120: 6 unresolved externals
It looks like it's related to Randy's SNES music stuff, but I got zdoom to compile. :?

Anything I can do about it?
RazTK
Posts: 52
Joined: Sun Jan 15, 2006 16:02
Location: Israel
Contact:

Post by RazTK »

The 'zdoom' project is missing a dependency to 'snes_spc'. You can fix it by right clicking on 'zdoom' in the Solution Explorer tab, then click on 'Project Dependencies' and check 'snes_spc'.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

OK, thanks, I did that and it compiled, but before it did, it spat this lot at me:

Code: Select all

Linking...
jpeg-6b.lib(jcomapi.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jdapimin.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jdapistd.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jdcoefct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jdcolor.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jddctmgr.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jdhuff.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jdinput.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jdmainct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jdmarker.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jdmaster.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jdmerge.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jdphuff.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jdpostct.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jdsample.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jerror.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jidctint.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jmemmgr.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
jpeg-6b.lib(jutils.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\jpeg-6b.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
snes_spc.lib(SNES_SPC.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\snes_spc.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
snes_spc.lib(SNES_SPC_misc.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\snes_spc.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
snes_spc.lib(SPC_DSP.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\snes_spc.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
snes_spc.lib(SPC_Filter.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with '.\release\snes_spc.lib' or at 'f:\Doom\GZdoomSource\vc80.pdb'; linking object as if no debug info
Embedding manifest...
Is that what should happen?
RazTK
Posts: 52
Joined: Sun Jan 15, 2006 16:02
Location: Israel
Contact:

Post by RazTK »

Um, no. :>

The PDB files should be there. Not sure why they're not. Perhaps you "cleaned" the solution and then did "Build Solution"? I'm not sure. Rebuilding should fix that, I think.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

Thank you. Yes, rebuilding did it. I should have tried that myself first.
User avatar
GuntherDW
Posts: 117
Joined: Sat Nov 12, 2005 1:53
Location: Belgium, Antwerp
Contact:

Post by GuntherDW »

with r60 i get this error, i assume he just forgot to include it

Code: Select all

================================================================================In file included from src/sdl/i_system.cpp:41:
src/version.h:40:28: error: svnrevision_gz.h: No such file or directory
RazTK
Posts: 52
Joined: Sun Jan 15, 2006 16:02
Location: Israel
Contact:

Post by RazTK »

That file is supposed to be generated by the updaterevision tool.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

r60 certainly compiled without incident for me.
User avatar
GuntherDW
Posts: 117
Joined: Sat Nov 12, 2005 1:53
Location: Belgium, Antwerp
Contact:

Post by GuntherDW »

RazTK wrote:That file is supposed to be generated by the updaterevision tool.
i had to manually run updaterevision for that file to be generated
but i'll create a .patch for the linux users as usual (and a log with all the warnings for graf)
Locked

Return to “GZDoom”