LNK1104 error cannot open file enet.lib - c++

I'm trying to make an online game using ENet and Cocos2d.
I defined the include folder and the libs as well everything is good for the server side and it compiled and working 100%. But when I tried to do the same for client side it gave me this really strange error:
LNK1104: cannot open file 'enet.lib'
Things I have already tried:
checked if the lib and the include files really exist
deleted the libs and the include folder and tried again
restart VS2017 / Windows / Windows File explorer
Checked the .lib file permission
etc...
Please Help me with this error its driving me crazy since yesterday..

Related

Getting " Cannot open source file "pugixml.hpp" " error

When I try to build solution in visual studio I get an error saying :
Cannot open source file "pugixml.hpp" along with some other errors , such as :
Cannot open include file: 'cereal/types/list.hpp': No such file or directory.
I downloaded the code onto my local machine from a SVN repository and the solution is an integration of C++ and C#. Could it be due to my limited access to the repo or not.
Thanks
I looked it up on the internet and I tried going to the project properties and adding the directory manually but I didn't work. I am not professional , so maybe I haven't done this properly.
Generally speaking, downloading an external library needs to include its library directory and various header file directories.
If a dll is used, this document explains how to use the dll.
Regarding Cannot open source file "...hpp", you could refer to the method in this issue.

How do I compile this Far Manager plugin into a dll

I have been trying to install the ImageView plugin for Far Manager, but I couldn't find the dll file. Instead I found the original code, but I am having trouble compiling it into a DLL.
Here is the original: https://sourceforge.net/p/farplugs/code/HEAD/tree/ImageView/
I am trying to open the files as a Visual Studio project, opening plugin.cpp and pressing Build->"Build Current Document". It starts building, and runs into a million fatal errors like this one:
C:\Users\User\source\repos\ImageView\ImageView\libfreeimage\c1 : fatal error C1083: Cannot open source file: 'FreeImage\Source\LibPNG\pngwutil.c': No such file or directory
The files aren't there, but in ...\libfreeimage\ there are a bunch of vcxproj files like FreeImageLib.vcxproj
I am new to C++, and Visual Studio, so I am not sure what I am doing wrong. Any help would be greatly appreciated.

How to diagnose in Qt why "unable to open file"

I am trying to run the
https://code.qt.io/cgit/qt/qtbase.git/tree/examples/opengl/cube?h=5.13
example. It builds fine, starts up, then gives the message
QOpenGLShader: Unable to open file ":/vshader.glsl"
QOpenGLShader: Unable to open file ":/fshader.glsl"
QOpenGLTexture::setData() tried to set a null image
The files are there, the .qrc file found (I think from the message),
What can be the problem? (the error message is not helpful in locating he reason) The files are there, readable (by the other applications),
already moved all files in the same subdirectory.
I just tried to run the example on Qt5.13 windows 10 MSVC2017 64 bit without a problem so there must be something else going on here.
the same example is already installed in Your Qt installation directory. Can you try it from there? Should work.
Do you have Read write rights? Are all files in the same folder as the pro file?
Can you open the qrc file in Qt Creator and see if you have missing links?

Getting OpenAL to work in c++

Hey guys I've been having trouble trying to get openAL to work in my c++ program. I've installed oalinst and ALUT (Windows Binary) but when I try to compile/run my program (using Qt Creator) I get the following error:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\al\alut.h:5: error: C1083: Cannot open include file: 'alc.h': No such file or directory
I'm including "al/alut.h" in my main.cpp file, which try's to include both "alc.h" and "al.h"
I've tryed to search my entire computer for both of these header files and neither of them could be located (search began at "C:\" so I know it had to look though my entire system). Im using Windows 7 Home Premium 32 bit.
Has anyone else had problems with the installers or binarys not installing/coming with these files? Any help would be greatly appreciated!
If I'm not mistaken. alc.h and others are bundled in the OpenAl SDK (which you'll need to add to your project's include and lib path).
http://connect.creativelabs.com/developer/Wiki/OpenAL%20SDK%20for%20Windows.aspx
Note: Right now, I can't download it from that source for some reason.

When trying to reference a DLL project in the same solution as my EXE project, I get an error "Cannot open include file: 'iostream'

I'm trying to create a game and then link to my engine DLL library which references static libraries such as Math, Utils, Entities, Physics, etc. I'm new to DLLs and I've only ever linked to them, and never actually built them (same with static libs). I'm trying to link my console app to my engine DLL, but when I include a header file in my console app from my engine I get an error:
fatal error C1083: Cannot open include file: 'iostream': No such file or directory
Does anyone know how I could solve this?
Also, is this a good use of DLL files and static libraries? I'm trying to organize my code more professionally, even in a small project like this.
Edit: I forgot to mention the header file I'm including from engine into console app includes the iostream file, if that wasn't obvious before to you.
Thanks!
Please verify if you have included the required header files in your project.
#include<iostream>