What does this Error means...? How do we fix the problem...?  
Author Message
Allah Is Here





PostPosted: Visual C++ Language, What does this Error means...? How do we fix the problem...? Top

Hi,

...   ...   ...   Allah Is Here... I use the Visual Studio 2005 Standard Edition, with Visual C+++ and DirectX 8... I get this kind of error from the compiler, as below...

 

1>------ Build started: Project: Chapter 9_Project, Configuration: Debug Win32 ------

1>Compiling...

1>Crap___1.cpp

1>c:\documents and settings\ly heu\my documents\c++ codes\chapter 9_project\chapter 9_project\headercrap1.h(116) : warning C4005: 'D3DFVF_SIMPLEVERTEX' : macro redefinition

1> c:\documents and settings\ly heu\my documents\c++ codes\chapter 9_project\chapter 9_project\headercrap1.h(64) : see previous definition of 'D3DFVF_SIMPLEVERTEX'

1>c:\documents and settings\ly heu\my documents\c++ codes\chapter 9_project\chapter 9_project\headercrap1.h(130) : warning C4005: 'NUM_VERTICES' : macro redefinition

1> c:\documents and settings\ly heu\my documents\c++ codes\chapter 9_project\chapter 9_project\headercrap1.h(65) : see previous definition of 'NUM_VERTICES'

1>c:\documents and settings\ly heu\my documents\c++ codes\chapter 9_project\chapter 9_project\headercrap1.h(179) : warning C4101: 'buffer' : unreferenced local variable

1>c:\documents and settings\ly heu\my documents\c++ codes\chapter 9_project\chapter 9_project\headercrap1.h(288) : warning C4244: 'initializing' : conversion from 'int' to 'float', possible loss of data

1>c:\documents and settings\ly heu\my documents\c++ codes\chapter 9_project\chapter 9_project\headercrap1.h(289) : warning C4244: 'initializing' : conversion from 'int' to 'float', possible loss of data

1>c:\documents and settings\ly heu\my documents\c++ codes\chapter 9_project\chapter 9_project\crap___1.cpp(84) : warning C4244: 'return' : conversion from 'WPARAM' to 'int', possible loss of data

1>c:\documents and settings\ly heu\my documents\c++ codes\chapter 9_project\chapter 9_project\crap___1.cpp(14) : warning C4101: 'hdc' : unreferenced local variable

1>Linking...

1>LINK : fatal error LNK1104: cannot open file 'libci.lib'

1>Build log was saved at "file://c:\Documents and Settings\Ly Heu\My Documents\C++ Codes\Chapter 9_Project\Chapter 9_Project\Debug\BuildLog.htm"

1>Chapter 9_Project - 1 error(s), 7 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

_________The error seems to be with this below...

1>Linking...

1>LINK : fatal error LNK1104: cannot open file 'libci.lib'

_________What does it mean... What is compiler saying that went wrong... What seems to be the cause... How do I fix this problem... Any help...

 

Hey, Everybody... There must be one or two #include file to include to fix this problem with the Visual Studio 2005 Standard Edition, don't you think... Do you know which ones...



Visual C++10  
 
 
Sarath.





PostPosted: Visual C++ Language, What does this Error means...? How do we fix the problem...? Top

I think you are including same header file (either a typo or through another include file) in your specified CPp file.

i.e

#include<route.h> // route.h also includes a.h
#include <a.h> // here we are including again.

Normally the standard include files of platform sdk and directx will be inside the #ifndef lock to avoid multiple includes.
I'm not sure whether this will correct your problem

The linking error occurs because you are not linking to the specified library (lib file)or object file..




 
 
Marius Bancila





PostPosted: Visual C++ Language, What does this Error means...? How do we fix the problem...? Top

The linking error occurs because you are not linking to the specified library (lib file)or object file..

Well, he links to it, but the linker cannot locate the specified lib file. Please make sure the folder that contains the library is in your library directories list.



 
 
Allah Is Here





PostPosted: Visual C++ Language, What does this Error means...? How do we fix the problem...? Top

Hi,

... ... ... Allah Is Here... Hey Marius... You see, that's what I was thinking also... I don't think the Visual Studio 2005 Standard Edition, with the Visual C++, They DON'T have any LIBRARY Folders that would Contain the specific libci.lib file AT ALL... Nor do any of the DirectX 8, also NOT the DirectX 10 SDKs Do Not contain any Library Folders with the libci.lib file AT ALL... So, do you think that the DirectX 9 SDK would contain it... Also, If none of them, then, How do we fix the Problem... What to do for real... What seems to be the solution at all...


 
 
Bite Qiu - MSFT





PostPosted: Visual C++ Language, What does this Error means...? How do we fix the problem...? Top

Hi, Allah

I think your problem is refer to the link chain end with a old c library, which is not included in .NET. Please try the following steps:

1. right click on your project in the solution explorer, select properties.

2. navigate to the linker section, find the Input tag.

3. enter "libci.lib" in the Ignore specific library section in the right side and build your project.

Thanks
Bite

 
 
Marius Bancila





PostPosted: Visual C++ Language, What does this Error means...? How do we fix the problem...? Top

Hey, Everybody... There must be one or two #include file to include to fix this problem with the Visual Studio 2005 Standard Edition, don't you think... Do you know which ones...

Don't shout at us if you need help.