{{notification.text}}

MirGames

SUPER_ROBOT
02.08.10 01:48
0
Ошибки вроде бы простые, но мне пока не хватает знаний:
Код
1>c:\src\CPU.h(62): error C2065: 'FILE' : undeclared identifier
1>c:\src\CPU.h(62): error C2059: syntax error : ')'
1>c:\src\CPU.h(63): error C2065: 'FILE' : undeclared identifier
1>c:\src\CPU.h(63): error C2059: syntax error : ')'
1>c:\src\APU.h(35): error C2065: 'FILE' : undeclared identifier
1>c:\src\APU.h(35): error C2059: syntax error : ')'
1>c:\src\APU.h(36): error C2065: 'FILE' : undeclared identifier
1>c:\src\APU.h(36): error C2059: syntax error : ')'
1>in_nintendulator.cpp(305): error C2039: 'sample_ok' : is not a member of 'APU'
1>in_nintendulator.cpp(305): error C2065: 'sample_ok' : undeclared identifier
1>in_nintendulator.cpp(308): error C2039: 'sample_ok' : is not a member of 'APU'
1>in_nintendulator.cpp(308): error C2065: 'sample_ok' : undeclared identifier
1>in_nintendulator.cpp(310): error C2039: 'sample_ok' : is not a member of 'APU'
1>in_nintendulator.cpp(310): error C2065: 'sample_ok' : undeclared identifier
1>in_nintendulator.cpp(311): error C2039: 'sample_pos' : is not a member of 'APU'
1>in_nintendulator.cpp(311): error C2065: 'sample_pos' : undeclared identifier

Пробовал в Visual C++ 6 - там океан ошибок. Прошу помочь разобраться.
Отредактировано: 02.08.10 01:50
#1
02.08.10 02:08
0
попробуй так:
Код
// CPU.h
// добавить:
#include <stdio.h>
using namespace std;

// APU.h
// изменить:
//#ifdef    NSFPLAYER
extern    short    sample_pos;
extern    BOOL    sample_ok;
//#endif    /* NSFPLAYER */
#2
SUPER_ROBOT
02.08.10 14:37
0
Android, спасибо, наконец хоть что-то новое увидел в ошибках :) Вот что на этот раз:
Код
1>NES.obj : error LNK2005: "unsigned char (* NES::PRG_RAM)[4096]" (?PRG_RAM@NES@@3PAY0BAAA@EA) already defined in in_nintendulator.obj
1>NES.obj : error LNK2005: "int NES::ROMLoaded" (?ROMLoaded@NES@@3HA) already defined in in_nintendulator.obj
1>NES.obj : error LNK2005: "unsigned char (* NES::PRG_ROM)[4096]" (?PRG_ROM@NES@@3PAY0BAAA@EA) already defined in in_nintendulator.obj
1>NES.obj : error LNK2005: "int NES::PRGMask" (?PRGMask@NES@@3HA) already defined in in_nintendulator.obj
1>NES.obj : error LNK2005: "int NES::SoundEnabled" (?SoundEnabled@NES@@3HA) already defined in in_nintendulator.obj
1>     Creating library C:\src\Debug\нинтенд.lib and object C:\src\Debug\нинтенд.exp
1>LINK : warning LNK4232: name нинтенд.exe contains non-ASCII characters, DLL may not load on system with ANSI codepage other than 1251
1>APU.obj : error LNK2019: unresolved external symbol _DirectSoundCreate@12 referenced in function "void __cdecl APU::Create(void)" (?Create@APU@@YAXXZ)
1>APU.obj : error LNK2001: unresolved external symbol _DSDEVID_DefaultPlayback
1>AVI.obj : error LNK2019: unresolved external symbol _AVIFileExit@0 referenced in function "struct HAVI__ * __cdecl CreateAvi(char const *,int,struct tWAVEFORMATEX const *)" (?CreateAvi@@YAPAUHAVI__@@PBDHPBUtWAVEFORMATEX@@@Z)
1>AVI.obj : error LNK2019: unresolved external symbol _AVIFileOpenA@16 referenced in function "struct HAVI__ * __cdecl CreateAvi(char const *,int,struct tWAVEFORMATEX const *)" (?CreateAvi@@YAPAUHAVI__@@PBDHPBUtWAVEFORMATEX@@@Z)
1>AVI.obj : error LNK2019: unresolved external symbol _AVIFileInit@0 referenced in function "struct HAVI__ * __cdecl CreateAvi(char const *,int,struct tWAVEFORMATEX const *)" (?CreateAvi@@YAPAUHAVI__@@PBDHPBUtWAVEFORMATEX@@@Z)
1>AVI.obj : error LNK2019: unresolved external symbol _AVIFileRelease@4 referenced in function "long __cdecl CloseAvi(struct HAVI__ *)" (?CloseAvi@@YAJPAUHAVI__@@@Z)
1>AVI.obj : error LNK2019: unresolved external symbol _AVIStreamRelease@4 referenced in function "long __cdecl CloseAvi(struct HAVI__ *)" (?CloseAvi@@YAJPAUHAVI__@@@Z)
1>AVI.obj : error LNK2019: unresolved external symbol _AVIStreamSetFormat@16 referenced in function "long __cdecl SetAviVideoCompression(struct HAVI__ *,struct HBITMAP__ *,struct AVICOMPRESSOPTIONS *,int,struct HWND__ *)" (?SetAviVideoCompression@@YAJPAUHAVI__@@PAUHBITMAP__@@PAUAVICOMPRESSOPTIONS@@HPAUHWND__@@@Z)
1>AVI.obj : error LNK2019: unresolved external symbol _AVIMakeCompressedStream@16 referenced in function "long __cdecl SetAviVideoCompression(struct HAVI__ *,struct HBITMAP__ *,struct AVICOMPRESSOPTIONS *,int,struct HWND__ *)" (?SetAviVideoCompression@@YAJPAUHAVI__@@PAUHBITMAP__@@PAUAVICOMPRESSOPTIONS@@HPAUHWND__@@@Z)
1>AVI.obj : error LNK2019: unresolved external symbol _AVISaveOptionsFree@8 referenced in function "long __cdecl SetAviVideoCompression(struct HAVI__ *,struct HBITMAP__ *,struct AVICOMPRESSOPTIONS *,int,struct HWND__ *)" (?SetAviVideoCompression@@YAJPAUHAVI__@@PAUHBITMAP__@@PAUAVICOMPRESSOPTIONS@@HPAUHWND__@@@Z)
1>AVI.obj : error LNK2019: unresolved external symbol _AVISaveOptions@20 referenced in function "long __cdecl SetAviVideoCompression(struct HAVI__ *,struct HBITMAP__ *,struct AVICOMPRESSOPTIONS *,int,struct HWND__ *)" (?SetAviVideoCompression@@YAJPAUHAVI__@@PAUHBITMAP__@@PAUAVICOMPRESSOPTIONS@@HPAUHWND__@@@Z)
1>AVI.obj : error LNK2019: unresolved external symbol _AVIFileCreateStreamA@12 referenced in function "long __cdecl SetAviVideoCompression(struct HAVI__ *,struct HBITMAP__ *,struct AVICOMPRESSOPTIONS *,int,struct HWND__ *)" (?SetAviVideoCompression@@YAJPAUHAVI__@@PAUHBITMAP__@@PAUAVICOMPRESSOPTIONS@@HPAUHWND__@@@Z)
1>AVI.obj : error LNK2019: unresolved external symbol _AVIStreamWrite@32 referenced in function "long __cdecl AddAviFrame(struct HAVI__ *,struct HBITMAP__ *)" (?AddAviFrame@@YAJPAUHAVI__@@PAUHBITMAP__@@@Z)
1>Controllers.obj : error LNK2019: unresolved external symbol _DirectInputCreateEx@20 referenced in function "void __cdecl Controllers::Init(void)" (?Init@Controllers@@YAXXZ)
1>Controllers.obj : error LNK2001: unresolved external symbol _IID_IDirectInput7A
1>Controllers.obj : error LNK2001: unresolved external symbol _c_dfDIJoystick2
1>Controllers.obj : error LNK2001: unresolved external symbol _IID_IDirectInputDevice7A
1>Controllers.obj : error LNK2001: unresolved external symbol _GUID_Button
1>Controllers.obj : error LNK2001: unresolved external symbol _GUID_POV
1>Controllers.obj : error LNK2001: unresolved external symbol _GUID_Slider
1>Controllers.obj : error LNK2001: unresolved external symbol _GUID_RzAxis
1>Controllers.obj : error LNK2001: unresolved external symbol _GUID_RyAxis
1>Controllers.obj : error LNK2001: unresolved external symbol _GUID_RxAxis
1>Controllers.obj : error LNK2001: unresolved external symbol _GUID_ZAxis
1>Controllers.obj : error LNK2001: unresolved external symbol _GUID_YAxis
1>Controllers.obj : error LNK2001: unresolved external symbol _GUID_XAxis
1>Controllers.obj : error LNK2001: unresolved external symbol _c_dfDIKeyboard
1>Controllers.obj : error LNK2001: unresolved external symbol _GUID_SysKeyboard
1>Controllers.obj : error LNK2001: unresolved external symbol _GUID_Key
1>Controllers.obj : error LNK2001: unresolved external symbol _c_dfDIMouse2
1>Controllers.obj : error LNK2001: unresolved external symbol _GUID_SysMouse
1>GFX.obj : error LNK2019: unresolved external symbol _DirectDrawCreateEx@16 referenced in function "void __cdecl GFX::Create(void)" (?Create@GFX@@YAXXZ)
1>GFX.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7
1>in_nintendulator.obj : error LNK2001: unresolved external symbol "short APU::sample_pos" (?sample_pos@APU@@3FA)
1>in_nintendulator.obj : error LNK2001: unresolved external symbol "int APU::sample_ok" (?sample_ok@APU@@3HA)
1>NES.obj : error LNK2019: unresolved external symbol __imp__PathAppendA@8 referenced in function "void __cdecl NES::SetupDataPath(void)" (?SetupDataPath@NES@@YAXXZ)
1>Nintendulator.obj : error LNK2001: unresolved external symbol __imp__PathAppendA@8
1>Nintendulator.obj : error LNK2019: unresolved external symbol __imp__timeEndPeriod@4 referenced in function _WinMain@16
1>Nintendulator.obj : error LNK2019: unresolved external symbol __imp__timeBeginPeriod@4 referenced in function _WinMain@16
1>C:\src\Debug\нинтенд.exe : fatal error LNK1120: 38 unresolved externals
Отредактировано: 02.08.10 15:03
#{{post.Index}}
{{post.Author.Login}}
{{post.CreatedDate | date:'dd.MM.yy HH:mm'}}
{{post.VotesRating}}
Отредактировано: {{post.UpdatedDate | date:'dd.MM.yy HH:mm'}}