I am trying to build GPUMLib, and I get the following errors
Error 11 error LNK2019: unresolved external symbol "public: static void __cdecl GPUMLib::Random::SetSeed(unsigned __int64,enum curandRngType)" (?SetSeed#Random#GPUMLib##SAX_KW4curandRngType###Z) referenced in function _main C:\libraries\GPUMLib1\build\src\examples\DBN\DBNapp.obj
Error 12 error LNK2019: unresolved external symbol "public: static void __cdecl GPUMLib::Random::Fill(class GPUMLib::DeviceArray<float> &)" (?Fill#Random#GPUMLib##SAXAAV?$DeviceArray#M#2##Z) referenced in function "public: void __thiscall GPUMLib::RBM::ContrastiveDivergence(int)" (?ContrastiveDivergence#RBM#GPUMLib##QAEXH#Z) C:\libraries\GPUMLib1\build\src\examples\DBN\RBMKernels.lib(RBMKernels_generated_rbm.cu.obj)
Error 13 error LNK1120: 2 unresolved externals C:\libraries\GPUMLib1\build\src\examples\DBN\Debug\DBN.exe 1
Any ideas what might be causing this ? Please note that this is the only part that is unsuccessfully built from the entire library
20> Build all projects
21>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
21>Project not selected to build for this solution configuration
========== Build: 19 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========
As the authors of the library suggested, in the src/random folder I had to rename "random.cu" to "random.cpp". This solved the problem.
Related
i have simple WPF project to demonstrate my issue
this is my build log
Rebuild started...
1>------ Rebuild All started: Project: WpfApp, Configuration: Debug Any CPU ------
Restored d:\projects\GrpcError\WpfApp\WpfApp.csproj (in 6 ms).
1>d:\projects\GrpcError\WpfApp\MainWindow.xaml.cs(2,14,2,20): error CS0234: The type or namespace name 'Protos' does not exist in the namespace 'WpfApp' (are you missing an assembly reference?)
1>Done building project "WpfApp_khdt0wpw_wpftmp.csproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
funny part is that visual studio (2022) correctly navigates to generated file (d:\projects\GrpcError\WpfApp\obj\Debug\net6.0-windows\Protos\Login.cs) with namespace WpfApp.Protos.Core defined ...
i managed to track this error to MainWindow.xaml file -
compilation will be successfull if i remove this line: xmlns:local="clr-namespace:WpfApp"
any idea why is this happening?
I have created a new Word Web Add-In in Visual Studio 2019. Whenever I try to run it, I get the following errors:
1>------ Build started: Project: WordWebAddIn1Web, Configuration: Debug Any CPU ------
1>C:\Users\Me\node_modules\#types\fs-extra\index.d.ts(188,87): error TS2694: Build:Namespace '"fs"' has no exported member 'Dir'.
1>C:\Users\Me\node_modules\#types\fs-extra\index.d.ts(191,17): error TS2694: Build:Namespace '"fs"' has no exported member 'OpenDirOptions'.
1>C:\Users\Me\node_modules\#types\fs-extra\index.d.ts(192,53): error TS2694: Build:Namespace '"fs"' has no exported member 'Dir'.
1>C:\Users\Me\node_modules\#types\fs-extra\index.d.ts(194,52): error TS2694: Build:Namespace '"fs"' has no exported member 'OpenDirOptions'.
1>C:\Users\Me\node_modules\#types\fs-extra\index.d.ts(194,80): error TS2694: Build:Namespace '"fs"' has no exported member 'Dir'.
1>C:\Users\Me\node_modules\#types\fs-extra\index.d.ts(265,52): error TS2694: Build:Namespace 'NodeJS' has no exported member 'ArrayBufferView'.
1>C:\Users\Me\node_modules\#types\fs-extra\index.d.ts(265,167): error TS2694: Build:Namespace 'NodeJS' has no exported member 'ArrayBufferView'.
1>C:\Users\Me\node_modules\#types\fs-extra\index.d.ts(266,52): error TS2694: Build:Namespace 'NodeJS' has no exported member 'ArrayBufferView'.
1>C:\Users\Me\node_modules\#types\fs-extra\index.d.ts(266,149): error TS2694: Build:Namespace 'NodeJS' has no exported member 'ArrayBufferView'.
1>C:\Users\Me\node_modules\#types\fs-extra\index.d.ts(267,52): error TS2694: Build:Namespace 'NodeJS' has no exported member 'ArrayBufferView'.
2>------ Build started: Project: WordWebAddIn1, Configuration: Debug Any CPU ------
2> Successfully created package at: C:\Users\Me\Development\C#\Office Web Addin\WordWebAddIn1\bin\Debug\WordWebAddIn1.debugapp
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
I have already deleted the fs-extra folder from node_modules and installed npm install -g #types\fs-extra.
Ok, I found the answer, I had to delete the #types\fs-extra folder from my global node_modules.
Hello I am trying to use msxml and I am getting a linker (VS 2012) error and can't figure out why.
My class file has the following header declaration:
#include <MsXml6.h>
class Foo
{
....
private:
static IXMLDOMDocument* document;
};
I then reference the document with the following (which gives the link error):
CoCreateInstance(CLSID_DOMDocument60, NULL, CLSCTX_INPROC_SERVER, IID_IXMLDOMDocument, (void**)&document);
I have the project setup to link against msxml6.lib. The logs are as follows:
Searching C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x64\msxml6.lib:
1> Found IID_IXMLDOMDocument
1> Referenced in Foo.obj
1> Loaded msxml6.lib(msxml6_i.obj)
...
1>Foo.obj : error LNK2001: unresolved external symbol "private: static struct IXMLDOMDocument * Foo::document" (?document#Foo##0PEAUIXMLDOMDocument##EA)
1>Some.exe : fatal error LNK1120: 1 unresolved externals
Is there something important I am missing? Let me know if you need more info.
Thanks!
I found the problem, I forgot to declare the document variable in the source file.
I am newbie in visual c++.i have created a small program,but its showing error C1083.
My program is like this:
#include <iostream.h>
using namespace std;
void main()
{
cout <<"Welcome to cpp program";
}
the error report is :
1>------ Build started: Project: payroll, Configuration: Debug Win32 ------
1> first_page.cpp
1>c:\users\naga\documents\visual studio 2010\projects\payroll\payroll\first_page.cpp(1):
fatal error C1083:
Cannot open include file: 'iostream.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
i have seen that i should do something with the properties.But i didnt understand that stuff.Also When i click the toolbar and property window,no item appears inside them.I doubt this comes coz i have selected win 32 console application???
std include headers do not need the .h
#include <iostream>
should work.
I have downloaded the source code for a projet in cocos2d-x.
I am using the ./build_native.sh from the Hello World example, which is sure it works.
Yet again I am getting this error when compiling:
Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Compile++ thumb : cocos2d <= CCGrabber.cpp
jni/../../libs/cocos2dx/effects/CCGrabber.cpp: In constructor 'cocos2d::CCGrabber::CCGrabber()':
jni/../../libs/cocos2dx/effects/CCGrabber.cpp:46:32: error: 'glGenFramebuffersOES' was not declared in this scope
jni/../../libs/cocos2dx/effects/CCGrabber.cpp: In member function 'void cocos2d::CCGrabber::grab(cocos2d::CCTexture2D*)':
jni/../../libs/cocos2dx/effects/CCGrabber.cpp:61:47: error: 'glBindFramebufferOES' was not declared in this scope
jni/../../libs/cocos2dx/effects/CCGrabber.cpp:65:26: error: 'glFramebufferTexture2DOES' was not declared in this scope
jni/../../libs/cocos2dx/effects/CCGrabber.cpp:68:63: error: 'glCheckFramebufferStatusOES' was not declared in this scope
jni/../../libs/cocos2dx/effects/CCGrabber.cpp: In member function 'void cocos2d::CCGrabber::beforeRender(cocos2d::CCTexture2D*)':
jni/../../libs/cocos2dx/effects/CCGrabber.cpp:88:47: error: 'glBindFramebufferOES' was not declared in this scope
jni/../../libs/cocos2dx/effects/CCGrabber.cpp: In member function 'void cocos2d::CCGrabber::afterRender(cocos2d::CCTexture2D*)':
jni/../../libs/cocos2dx/effects/CCGrabber.cpp:113:50: error: 'glBindFramebufferOES' was not declared in this scope
jni/../../libs/cocos2dx/effects/CCGrabber.cpp: In destructor 'virtual cocos2d::CCGrabber::~CCGrabber()':
jni/../../libs/cocos2dx/effects/CCGrabber.cpp:127:35: error: 'glDeleteFramebuffersOES' was not declared in this scope
I searched and found this sollution. But it does not work for me. I am still getting the same error. Maybe it is different in ndk-r8 whilst the sollution is for ndk-r7.
Any help?
Your android sdk version must bigger than 2.2.because from 2.2,the android begin to support opengl es 2.0,and the cocos2d-x 2.0 use the opengles 2.0 to render