Tag Archives: express

How do I use GSL on Visual C++ 2010 express?

How do I use GSL on Visual C++ 2010 express?

This also worked on Visual Studio 2008

Join my FREE newsletter if you like these sort of articles 

This is an important C++ library for all of the C++ QuantCode.com examples.

http://www.quantcode.com/modules/smartfaq/faq.php?faqid=94

My Visual Studio 2010 DLL instructions generated nearly 4983 warnings but it still generates the DLL. I tried Visual Studio 2008, it seems fine with that build.

 

Ensure to follow the dependency instructions to add the build GSL DLLs to your future QuantCode.com C++ example Visual Studio projects

 

Update:
include gsl header files and directory into visual sutdio/vc/include folder. should
get rid of missing header error during compile

 

Also if you get similar linking errors like:

(from url below) also if you  get errors:

Linking…
asianadi.obj : error LNK2019: unresolved external symbol
_gsl_matrix_get referenced in function “void __cdecl
ShowGslMatrix(struct gsl_matrix *,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >)”
(?ShowGslMatrix@@YAXPAUgsl_matrix@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
asianadi.obj : error LNK2019: unresolved external symbol
_gsl_vector_get referenced in function “void __cdecl
GetNeigbourIndices(struct gsl_vector *,double,int &,int &)”
(?GetNeigbourIndices@@YAXPAUgsl_vector@@NAAH1@Z)
asianadi.obj : error LNK2019: unresolved external symbol
_gsl_vector_set referenced in function _wmain
asianadi.obj : error LNK2019: unresolved external symbol
_gsl_vector_alloc referenced in function _wmain
asianadi.obj : error LNK2019: unresolved external symbol
_gsl_matrix_memcpy referenced in function _wmain
asianadi.obj : error LNK2019: unresolved external symbol
_gsl_matrix_set referenced in function _wmain
asianadi.obj : error LNK2019: unresolved external symbol
_gsl_matrix_alloc referenced in function _wmain
asianadi.obj : error LNK2019: unresolved external symbol
_gsl_set_error_handler referenced in function _wmain
asianadi.obj : error LNK2019: unresolved external symbol
_gsl_ieee_env_setup referenced in function _wmain
C:\Documents and Settings\Administrator\My Documents\Visual Studio
2008\projects\asianadi\Debug\asianadi.exe : fatal error LNK1120: 9
unresolved externals
Build log was saved at “file://c:\Documents and
Settings\Administrator\My Documents\Visual Studio
2008\Projects\asianadi\asianadi\Debug\BuildLog.htm”

do: (from http://www.quantcode.com/modules/smartfaq/faq.php?faqid=94)
1.Launch Visual studio
2.Open your VC++ project.
3.Select menu Project -> properties
4.On the tree display in your project properties dialog box, select
branch for Configuration Properties->VC++ directories
5.On the right side of the dialog, click on the field for “Executable
Directories”. When you choose Edit, a dialog for “Executable
directories” will be launched. Click on button for new line. Paste
these into the field (one at a time):
C:\downloads\gsl-1.8-src\src\gsl\1.8\gsl-1.8\VC8\libgsl\Debug-DLL
C:\downloads\gsl-1.8-src\src\gsl\1.8\gsl-1.8\VC8\libgslcblas\Debug-DLL
6.On the right side of the dialog, click on the field for “Include
Directories”. When you choose Edit, a dialog for “Include directories”
will be launched. Click on button for new line. Paste this into the
field:
C:\downloads\gsl-1.8-src\src\gsl\1.8\gsl-1.8
7.On the right side of the dialog, click on the field for “Library
Directories”. When you choose Edit, a dialog for “Library directories”
will be launched. Click on button for new line. Paste these entries
into the field (one at a time):
C:\downloads\gsl-1.8-src\src\gsl\1.8\gsl-1.8\VC8\libgsl\Debug-DLL
C:\downloads\gsl-1.8-src\src\gsl\1.8\gsl-1.8\VC8\libgslcblas\Debug-DLL
8.In the property pages dialog, select tree item “configuration
properties->Linker->Input
9.On the right hand side details, choose the field “Additional
Dependencies” and append the following entries by clicking the …
button:
libgsl_dll_d.lib
libgslcblas_dll_d.lib
10.In the property pages dialog, select tree item “configuration
properties->C++->Preprocessor
11. Click on edit field for preprocessor definitions. Clikc on
dropdown button. Choose edit. In the “Preprocessor definitions”
dialog, insert the following entry :
GSL_DLL
12. You want want to copy libgslcblas_d.dll and libgsl_d.dll to the
current folder of your new project executable, or else visual studio
will throw an error that the dll is not found

step 12 seems to resolve it by manually moving dlls into project debug
or release folder

during execution, you could still get missing dlls, but could be moved
into Visual Studio project folder one above debug directory.

If you get missing symbols from the GSL for Visual Studio 2008, ensure the project’s properties has by right clicking.

Properties->Configuration Properties->Linker->Input->Additional Dependencies has the lines of:

libgsl_dll_d.lib
libgslcblas_dll_d.lib

 

Also, note for any new Win 32 Console Project, ensure you do not cehck Precompiled Headers Option.

 

 

If you get link error of unresolved external symbol _gsl_rng_mt19937

Ensure to add GSL_DLL as explained above

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Warning! I have issues for DotNet C# connect to SQL Server 2012 Express vs Enterprise production version

I there

As I hinted, using SQL Server and StreamInsights is a huge advantage for trading researchers to dig into data for hiddent profitable trends. As I dig further into how to use it with .NET languages like C#, I posted some nuggets that should help those trying to use it to save you many hours of frustration:

Warning! Have issues for DotNet C# connect to SQL Server 2012 Express vs Enterprise production version

https://quantlabs.net/blog/2013/09/warning-have-issues-for-dotnet-c-connect-to-sql-server-2012-express-vs-enterprise-production-version/

I thought these would be easy to implement into C# but boy, was I wrong! Here are some videos with source code:

Demo of DotNet C# with SQL Server 2012 using a insert statement


https://quantlabs.net/blog/2013/09/demo-of-dotnet-c-with-sql-server-2012-using-a-insert-statement/


Demo of DotNet C# with SQL Server 2012 using a select statement

https://quantlabs.net/blog/2013/09/demo-of-dotnet-c-with-sql-server-2012-using-a-select-statement/

I also posted this for my QuantLabs.net Premium Members:

Demo of 2 C Sharp applications communicating through SQL Server using a secret sauce trick

Also, once this upcoming high performance automated trading system is near completion, I will be hosting multi day intense workshop demoing with live Q&A on the system. It will be done only once due to me movng onto other areas of my trading research. As a result:

–> JOIN NOW FOR IMMEDIATE ACCESS <–

Here are many other benefits of this memberships

Thanks for reading

Bryan

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Warning! Have issues for DotNet C# connect to SQL Server 2012 Express vs Enterprise production version

Warning! Have issues for DotNet C# connect to SQL Server 2012 Express vs Exnterprise production version

I am having issues with this in my C# source code. I get stupid connection exceptions so I am reinstalling with an actual Enterprise production version. That will be my final target database so why waste time?

It seems the Express version has severe limitations so be warned!This can be a real pain in the ass. Try it with Oracle. Good Gawd.

http://technet.microsoft.com/en-us/library/ms143505%28v=sql.90%29.aspx

Frustrated? Let me show you how I got this working through my FREE newsletter

See in this video as I am able to connect Matlab 2013 to my SQL Server 2012 Enterprise remotely

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Let Microsoft know if you are working on a Windows 7 mobile app. Get it in their Windows 7 Market express for free!

Let Microsoft know if you are working on a Windows 7 mobile app. Get it in their Windows 7 Market express for free!

Are you a Canadian developer working on a Windows Phone 7 app that’s done or nearly done? We want to help you get a head start on everyone else. Contact me – Joey deVilla – by Monday, October 18th (and sooner is better) and let’s see what we can do to make your app one of the first in Windows Phone Marketplace!
http://blogs.msdn.com/b/cdndevs/archive/2010/10/12/got-a-windows-phone-7-app-let-joey-know.aspx?goback=.gde_1772623_news_223450199

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!