This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Technical assistance needed


Technical assistance needed

Postby coolkc » Jun 5, 2007 @ 5:10pm

Following the steps given in the Edgelib manual at first I arrived at the error "resource.h not found"
But I included the header file and the program was successfully compiled.

Now when i build it the following linking error arises

fatal error LNK1104: cannot open file 'user32.lib'

Google suggested the following remedy for this error:

1. Have you installed the Microsoft Platform SDK?

2. Have you added "...\Microsoft Platform SDK\Lib" to the list of Lib directories under Tools->Options->VC++ directories->Library files?


So I installed Microsoft Platform SDK for that purpose and included the library user32.lib and also included the entire folder to include all the libraries.

Now when I thought everything went fine another error came. It is

fatal error LNK1104: cannot open file 'ddraw.lib'

I am not able to sort out how to solve this problem and how to get any libraries.All these are linking errors. Can any one of you please tell me what the problem is and do have to install anything else?? I am using Edgelib for the first time.....

It will be helpful if any one solves this problem.

Thank you
coolkc
coolkc
pm Member
 
Posts: 25
Joined: Jun 5, 2007 @ 4:59pm


Postby edge » Jun 6, 2007 @ 10:05am

Hi Coolkc,

We recommend reading the Getting Started tutorial for Windows Desktop here: http://www.edgelib.com/index.php?node=45

It contains links to the SDK's you need to install. The missing ddraw.lib error is caused by a missing DirectX SDK. Download the latest DirectX SDK here: http://www.microsoft.com/directx
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby coolkc » Jun 6, 2007 @ 1:18pm

Hi,
Thank you for the reply.

I am working on Embedded Visual C++ and Pocket PC 2003. So I followed the tutorial for Windows mobile and not for Windows Desktop.
Also I already installed DirectX 9.0 and included the Lib folder but then I got more errors

dge.lib(edge.obj) : error LNK2019: unresolved external symbol __imp__Sleep@4 referenced in function "private: void __thiscall ClassEdge::LockFPS(void)" (?LockFPS@ClassEdge@@AAEXXZ)
edge.lib(emod_file.obj) : error LNK2001: unresolved external symbol __imp__Sleep@4
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__CreateFileW@28 referenced in function "public: bool __thiscall ClassEFile::Open(unsigned short *,unsigned char)" (?Open@ClassEFile@@QAE_NPAGE@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__CloseHandle@4 referenced in function "public: void __thiscall ClassEFile::Close(void)" (?Close@ClassEFile@@QAEXXZ)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__GetFileSize@8 referenced in function "public: unsigned long __thiscall ClassEFile::Size(unsigned short *)" (?Size@ClassEFile@@QAEKPAG@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__ReadFile@20 referenced in function "public: bool __thiscall ClassEFile::Read(void *,unsigned long)" (?Read@ClassEFile@@QAE_NPAXK@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__WriteFile@20 referenced in function "public: bool __thiscall ClassEFile::Write(void *,unsigned long)" (?Write@ClassEFile@@QAE_NPAXK@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__SetFilePointer@16 referenced in function "public: void __thiscall ClassEFile::Seek(unsigned long)" (?Seek@ClassEFile@@QAEXK@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__SetEndOfFile@4 referenced in function "public: bool __thiscall ClassEFile::SetSize(unsigned long)" (?SetSize@ClassEFile@@QAE_NK@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__DeleteFileW@4 referenced in function "public: bool __thiscall ClassEFile::Delete(unsigned short *)" (?Delete@ClassEFile@@QAE_NPAG@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__MoveFileW@8 referenced in function "public: bool __thiscall ClassEFile::Rename(unsigned short *,unsigned short *)" (?Rename@ClassEFile@@QAE_NPAG0@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__GetFileAttributesA@4 referenced in function "public: unsigned short __thiscall ClassEFile::GetAttributes(unsigned short *)" (?GetAttributes@ClassEFile@@QAEGPAG@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__FileTimeToSystemTime@8 referenced in function "public: bool __thiscall ClassEFile::GetInformation(struct E_FILEINFO *,unsigned short *,bool)" (?GetInformation@ClassEFile@@QAE
_NPAUE_FILEINFO@@PAG_N@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__FileTimeToLocalFileTime@8 referenced in function "public: bool __thiscall ClassEFile::GetInformation(struct E_FILEINFO *,unsigned short *,bool)" (?GetInformation@ClassEFile@@
QAE_NPAUE_FILEINFO@@PAG_N@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__GetFileInformationByHandle@8 referenced in function "public: bool __thiscall ClassEFile::GetInformation(struct E_FILEINFO *,unsigned short *,bool)" (?GetInformation@ClassEFil
e@@QAE_NPAUE_FILEINFO@@PAG_N@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__CreateDirectoryW@8 referenced in function "public: bool __thiscall ClassEFile::NewFolder(unsigned short *)" (?NewFolder@ClassEFile@@QAE_NPAG@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__FindFirstFileW@8 referenced in function "public: bool __thiscall ClassEFile::OpenFolder(unsigned short *,unsigned short *)" (?OpenFolder@ClassEFile@@QAE_NPAG0@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__FindNextFileW@8 referenced in function "public: bool __thiscall ClassEFile::ReadFolder(unsigned short *)" (?ReadFolder@ClassEFile@@QAE_NPAG@Z)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__FindClose@4 referenced in function "public: void __thiscall ClassEFile::CloseFolder(void)" (?CloseFolder@ClassEFile@@QAEXXZ)
edge.lib(emod_file.obj) : error LNK2019: unresolved external symbol __imp__RemoveDirectoryW@4 referenced in function "public: bool __thiscall ClassEFile::DeleteFolder(unsigned short *)" (?DeleteFolder@ClassEFile@@QAE_NPAG@Z)
edge.lib(emod_vtimer.obj) : error LNK2019: unresolved external symbol __imp__GetTickCount@0 referenced in function "public: static unsigned long __cdecl ClassERTimer::Count(void)" (?Count@ClassERTimer@@SAKXZ)
edge.lib(emod_vtimer.obj) : error LNK2019: unresolved external symbol __imp__QueryPerformanceCounter@4 referenced in function "public: static unsigned long __cdecl ClassERTimer::Count(void)" (?Count@ClassERTimer@@SAKXZ)
edge.lib(emod_vtimer.obj) : error LNK2019: unresolved external symbol __imp__QueryPerformanceFrequency@4 referenced in function "public: static unsigned long __cdecl ClassERTimer::Count(void)" (?Count@ClassERTimer@@SAKXZ)
edge.lib(emod_device.obj) : error LNK2019: unresolved external symbol _GetSystemPowerStatus@4 referenced in function "private: static void __cdecl ClassEDevice::GetBatteryInfo(unsigned char &,unsigned char &)" (?GetBatteryInfo@ClassEDevice@@CAXAAE0@
Z)
edge.lib(emod_device.obj) : error LNK2019: unresolved external symbol __imp__GetSystemTime@4 referenced in function "public: static void __cdecl ClassEDevice::CurrentTime(unsigned char &,unsigned char &,unsigned char &,bool)" (?CurrentTime@ClassEDev
ice@@SAXAAE00_N@Z)
edge.lib(emod_device.obj) : error LNK2019: unresolved external symbol __imp__GetLocalTime@4 referenced in function "public: static void __cdecl ClassEDevice::CurrentTime(unsigned char &,unsigned char &,unsigned char &,bool)" (?CurrentTime@ClassEDevi
ce@@SAXAAE00_N@Z)
edge.lib(emod_device.obj) : error LNK2019: unresolved external symbol __imp__GetTimeZoneInformation@4 referenced in function "public: static unsigned long __cdecl ClassEDevice::LocalTimeOffset(void)" (?LocalTimeOffset@ClassEDevice@@SAKXZ)
edge.lib(emod_device.obj) : error LNK2019: unresolved external symbol __imp__GetVersionExA@4 referenced in function "public: static void __cdecl ClassEDevice::GetOSName(unsigned short *)" (?GetOSName@ClassEDevice@@SAXPAG@Z)
edge.lib(emod_device.obj) : error LNK2019: unresolved external symbol __wgetenv referenced in function "public: unsigned short * __thiscall ClassEDevice::GetOwnerName(unsigned short *)" (?GetOwnerName@ClassEDevice@@QAEPAGPAG@Z)
emulatorDbg/helloworld.exe : fatal error LNK1120: 28 unresolved externals

These were the errors. Can you find what might be the problem here? I will however try working on Windows Desktop now, but I wanted to know what went wrong in the previous implementation of Embedded Visual C++ and Pocket PC 2003. Even when I install the directx why the errors are arising?

Thank You
coolkc
coolkc
pm Member
 
Posts: 25
Joined: Jun 5, 2007 @ 4:59pm


Postby edge » Jun 7, 2007 @ 9:39am

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby coolkc » Jun 7, 2007 @ 11:14am

coolkc
pm Member
 
Posts: 25
Joined: Jun 5, 2007 @ 4:59pm


Postby edge » Jun 8, 2007 @ 1:36pm

Hi Coolkc,

I think it may be a problem with Visual Studio 2005 express, because we are able to create a resource script file without any problems in Visual Studio 2005 standard edition.

To workaround the problem you can create a resource script file with Embedded Visual C++ and copy the file (resource.rc) to your Visual Studio 2005 project workspace. Then you can add it to the "source files" folder in the solution file list.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron