Bug #1450
closedCompilation in VS2008 broken
0%
Description
Hi,
I checked out the most recent version of Wt and could not compile in Windows7 VS2008 64Bit because of two errors:
1. src\Wt/WWidget(933) : error C2487: 'WT_GETPS_JS' : member of dll interface class may not be declared with dll interface
To fix it, I just put the two static variables to different lines:
static const char *WT_RESIZE_JS;
static const char *WT_GETPS_JS;
2. src\web\ImageUtils.C (70) : error C2039: 'data' : is not a member of 'std::vector<_Ty>'
It appears you are using the C++11 method data(). If you want to preserve backwards compatibility, you can change it to &header[0] (which is not as safe, as you have to guarantee that header[0] exists)
I opened a pull request for these two (hope it works).
Best,
Tassilo
Updated by Tassilo Glander about 12 years ago
Forgot to say that everything happens when building shared libraries (dlls).
As a follow up, I found the paypal example not linking against the new Payment classes. Adding the WT_API macro worked. Briefly checked the example and it does not crash (though it shows only a webpage with a start label...)
Updated by Koen Deforche about 12 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.2.3
Hey,
Thanks for the fixes (I've pulled them from github), and we also kicked our jenkins server.
Regards,
koen
Updated by Koen Deforche about 12 years ago
- Status changed from Resolved to Closed
Fixed in Wt 3.2.3 RC1.