home › Forums › # Technical Support › Can not run the simple-dimmer in VS2013
- This topic has 5 replies, 2 voices, and was last updated 6 years, 6 months ago by
Unknown.
-
AuthorPosts
-
March 2, 2017 at 21:50 #2317
Unknown
MemberPlease help me! I create the project in VS2013 to run the example code simple-dimmer. I have already link the fuzzylie.dll and fuzzylite.lib to my project. I build successfully project without errors. But when I run project, It causes an error :
First-chance exception at 0x74DFA832 in FLC.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x008FF2C4.
the breakpoint in line: Engine* engine = new Engine;
Can anyone get this error before? please help me! Thank youMarch 2, 2017 at 22:05 #2318Juan Rada-Vilela (admin)
KeymasterHi,
thanks for your post.
Have you compiled the fuzzylite libraries with your MS VS2013? The binaries provided in http://www.fuzzylite.com/downloads were compiled using Windows XP and some earlier version of VS.
If this does not work, can you please try using the static library instead of the dynamic library? That is, using
fuzzylite-static
.Cheers.
March 2, 2017 at 22:13 #2319Unknown
MemberYou mean that if I use the binaries download from http://fuzzylite.com/downloads/ with VS2010 , it will work? Do I need to compile again with my VS2010?
March 2, 2017 at 22:19 #2320Juan Rada-Vilela (admin)
KeymasterHi, I mean that you need to compile the fuzzylite binaries and use them instead of the ones already compiled available in fuzzylite.com.
Please,
(1) follow the building steps described in github.com/fuzzylite/fuzzylite,
(2) compile the fuzzylite libraries from source using your VS2013, and
(3) use the resulting binaries from step (2) to link your project under VS2013 and whatever windows you are using.In other words, do not use the fuzzylite binaries (namely fuzzylite.lib, fuzzylite.dll) downloaded from http://www.fuzzylite.com because those were built under VS2010 and Windows XP.
Cheers.
March 2, 2017 at 22:22 #2321Unknown
MemberI got your idea. I will try again. Thank you sir very much!
March 3, 2017 at 04:28 #2322Unknown
MemberHi! I compiled successfully with VS2010 and also run the code.
Then I try to compile source with VS2013, however it is falsed in fl-static compiling. There are 15 errors:
Error 1 error C2678: binary ‘<<‘ : no operator found which takes a left-hand operand of type ‘std::basic_ostream<char,std::char_traits<char>>’ (or there is no acceptable conversion) C:\Users\NgocQuan\Desktop\FZLITE\fuzzylite-5.0\fuzzylite-5.0\fuzzylite\src\imex\FclImporter.cpp 534 1 fl-static
………….
Have you successfully compiled with Vs2013 before? If you have, please help me!
Thank you! -
AuthorPosts
- You must be logged in to reply to this topic.