Using SMILE with Visual Studio 2015 C++
-
- Posts: 71
- Joined: Mon Aug 01, 2016 9:45 pm
Using SMILE with Visual Studio 2015 C++
There are some hard to find configurations I had to do to get SMILE to work with Visual Studio C++.
Here are the instructions I followed.
First, download SMILE for Visual Studio 2015; the 64 bit version. Here's the download page: https://download.bayesfusion.com/files. ... ness#SMILE
That link points to a ZIP file. Unzip the files into a folder in the Visual Studio folder. (These files can go anywhere.)
Create a new project in Visual Studio.
Here are the instructions I followed.
First, download SMILE for Visual Studio 2015; the 64 bit version. Here's the download page: https://download.bayesfusion.com/files. ... ness#SMILE
That link points to a ZIP file. Unzip the files into a folder in the Visual Studio folder. (These files can go anywhere.)
Create a new project in Visual Studio.
Last edited by jdtoellner on Sun Nov 27, 2016 5:10 pm, edited 2 times in total.
-
- Posts: 71
- Joined: Mon Aug 01, 2016 9:45 pm
Re: Using SMILE with Visual Studio 2015 C++
In the Solution Explorer window right-click on SMILE Sample Application (or whatever you named your application).
Select Properties.
On the properties page select VC++ Directories.
Select Properties.
On the properties page select VC++ Directories.
-
- Posts: 71
- Joined: Mon Aug 01, 2016 9:45 pm
Re: Using SMILE with Visual Studio 2015 C++
Click on the field next to Include Directories and select <Edit...>.
Click on the Folder icon in this window.
Then click on the ellipses (...).
Click on the Folder icon in this window.
Then click on the ellipses (...).
Last edited by jdtoellner on Sun Nov 27, 2016 5:12 pm, edited 2 times in total.
-
- Posts: 71
- Joined: Mon Aug 01, 2016 9:45 pm
Re: Using SMILE with Visual Studio 2015 C++
From here you'll navigate to the SMILE folder you unzipped.
Select the SMILE folder you created from the ZIP file.
Click OK here.
Select the SMILE folder you created from the ZIP file.
Click OK here.
Last edited by jdtoellner on Sun Nov 27, 2016 5:13 pm, edited 2 times in total.
-
- Posts: 71
- Joined: Mon Aug 01, 2016 9:45 pm
Re: Using SMILE with Visual Studio 2015 C++
You'll need to do the same for Library Directories.
Follow the same instructions you did for the Include folder.
When you're done with that click OK here.
You can now #include smile.h in your code.
Follow the same instructions you did for the Include folder.
When you're done with that click OK here.
You can now #include smile.h in your code.
Re: Using SMILE with Visual Studio 2015 C++
I use the Chinese version of VS2010, the same way?
-
- Site Admin
- Posts: 1422
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Using SMILE with Visual Studio 2015 C++
Jon,
Thanks for writting this info down. To build up on this, let me add that there's an alternative way of specifying the include and library directories:
1. for include directories, go to Project Settings, C/C++, General and set 'Additional Include Directories'.
2. for library directories, go to Project Settings, Linker, General and set 'Additional Library Directories'.
Thanks for writting this info down. To build up on this, let me add that there's an alternative way of specifying the include and library directories:
1. for include directories, go to Project Settings, C/C++, General and set 'Additional Include Directories'.
2. for library directories, go to Project Settings, Linker, General and set 'Additional Library Directories'.
-
- Posts: 71
- Joined: Mon Aug 01, 2016 9:45 pm
Re: Using SMILE with Visual Studio 2015 C++
For some reason this stopped working. I can't get VS to find include files. I'm having to resort to putting them in the project code folder.
VS works fine for projects I've already created. It stopped working for new projects.
VS works fine for projects I've already created. It stopped working for new projects.
-
- Site Admin
- Posts: 1422
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Using SMILE with Visual Studio 2015 C++
Did you try to use the 'Additional Include Directories' option in C/C++|General settings?
-
- Posts: 71
- Joined: Mon Aug 01, 2016 9:45 pm
Re: Using SMILE with Visual Studio 2015 C++
Yes. I tried this both ways: in VC++ Directories and in C/C++ General.
I'll chalk this up to either a Visual Studio bug or in my inability to use Visual Studio. It's not holding me up. It's just inconvenient.
I'll chalk this up to either a Visual Studio bug or in my inability to use Visual Studio. It's not holding me up. It's just inconvenient.
-
- Site Admin
- Posts: 1422
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Using SMILE with Visual Studio 2015 C++
Maybe it's an issue with OneDrive (your screenshots had directories there).
-
- Posts: 71
- Joined: Mon Aug 01, 2016 9:45 pm
Re: Using SMILE with Visual Studio 2015 C++
I figured out the problem. There's a Configuration option on the Property page. I had inadvertently selected Release and should have selected Degub.