Support Board
Date/Time: Mon, 13 Jan 2025 02:40:16 +0000
Linker error when using GDI
View Count: 1248
[2017-03-27 01:28:34] |
Usermb - Posts: 126 |
Using 1531 on Windows 10 x64. Trying to compile the default GDI example (GDIExample.cpp) leads to: -- Starting build of Custom Studies Source files: GDIExample.cpp. -- 03:04:37 C:\windows\system32\cmd.exe /C "C:\SierraChartScan\ACS_Source\VisualCCompile.Bat" C:\SierraChartScan\ACS_Source>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" GDIExample.cpp Creating library GDIExample.lib and object GDIExample.exp GDIExample.obj : error LNK2001: unresolved external symbol __imp__CreateSolidBrush@4 GDIExample.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4 GDIExample.obj : error LNK2001: unresolved external symbol __imp__Rectangle@20 GDIExample.obj : error LNK2001: unresolved external symbol __imp__SelectObject@8 C:\SierraChartScan\Data\GDIExample.dll : fatal error LNK1120: 4 unresolved externals -- End of Build -- 03:04:49 All other studies compile fine, in some of my other studies I even use Boost, and still no problem, all compiles fine. |
[2017-03-27 02:38:02] |
User553714 - Posts: 184 |
I added the line below to the top of the DLL and got it to compile but in my case there was no box drawn? #include <fcntl.h> On the little research I did this is for the Windows file descriptors like "_O_TEXT" and is not included in SC header file (not in scstructures anyway). |
[2017-03-27 02:53:10] |
Sierra Chart Engineering - Posts: 104368 |
This will be resolved in the next release which we will have out tomorrow.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2017-03-27 18:32:53] |
Usermb - Posts: 126 |
Thanks a lot, you guys rock, really great processes you've got there!
|
To post a message in this thread, you need to log in with your Sierra Chart account: