-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Linking error on Windows (both with VS 2013 and 2015) #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I experienced the same link error in Visual Studio 2013. Still trying to find solution... Could someone input to that issue? |
FYI I am now compiling in static mode and things work fine. I had other issues (crash when the destructor of ListObjectsResult was called) that were fixed at the same time. |
@epot what changed that it started working? |
Sorry for the close and re-open, that was a misclick :-). I am compiling in static mode now and do not have this issue anymore. But it would be good to have the possibility to use the library in dynamic mode on windows ! |
We don't have this issue on VS 2013 or VS 2015 for our builds, could you show me how you are building and also which version of the SDK you were using? |
Argl I misclicked again... |
I still have the same issue with the latest revision of the repository, sorry :-(. I am building with absolutely no parameters with cmake (just -G "Visual Studio 12 2013 Win64"). And then I have a C++ program trying to link against aws-cpp-sdk-s3.lib and aws-cpp-sdk-core.lib. |
Hello , I solved issue in this way: Building:mkdir build Using:I link aws-cpp-sdk-transfer.dll, aws-cpp-sdk-s3.dll, aws-cpp-sdk-core.dll to my custom DLL project in my VS solutionand setup these preprocessor variables in my DLL project: That's all, issue solved |
If you use CMake to configure your application then you can use our targets file and it will make this much less painful. Glad you got it solved. |
I have the same exact problem... recompiled the project using the instructions that dkislov posted, and that didn't solve the problem. I noticed a weird behavior while trying to instantiate Aws::Route53Domains::Model::GetDomainDetailRequest object using the new operator... the weird behavior is that now the code compiles and runs without any complaint. I was wondering if anyone knows why? I have copied the two lines of code below. The following line of code doesn't run and gives the same error message posted above:
This one works though: |
If anyone still running into this problem, make sure preprocessor variables are defined as @dkislov mentioned. Have a look at dynamoDbIntegrationTests project for reference: |
1f79408 Fix path to docker script in ct_run. 7d25b62 Merge commit 'ca2c63cb741a566f3ac6002a02c7dc68261b1e3b' into feature/merge-storage-helpers-functionality ca2c63c Squashed 'bamboos/' changes from 5b55a72..69ff95b c632173 Merge commit '327b2bc8582e88c300e225b7a66e24e61c838c9d' into feature/merge-storage-helpers-functionality 327b2bc Squashed 'clproto/' changes from 9f6d8c3..029c696 187dc43 Squashed 'bamboos/' changes from 7f7692e..5b55a72 e849607 Merge commit '187dc437339facf96cb41a22f96a71931694da5f' into feature/merge-storage-helpers-functionality c28e567 Merge branch 'feature/VFS-1527-set-open-flags-in-open' of ssh://git.plgrid.pl:7999/vfs/helpers into feature/merge-storage-helpers-functionality d441011 Merge branch 'feature/VFS-1484-better-client-configuration-on-mounting' of ssh://git.plgrid.pl:7999/vfs/helpers into feature/merge-storage-helpers-functionality 02eb1da Merge branch 'feature/VFS-1472-create-s3-storage-helper' of ssh://git.plgrid.pl:7999/vfs/helpers into feature/merge-storage-helpers-functionality a6647c8 Merge pull request aws#155 in VFS/helpers from feature/VFS-1563-add-gdb-flag-to-client-s-ct_run.py to develop cb14be5 VFS-1563 Add --gdb flag to ct_run.py . ed62659 VFS-1472 Add documentation. 3718869 VFS-1527 Add flags to mknod and open operations. 891b85c Merge pull request aws#151 in VFS/helpers from feature/VFS-1428-support-for-multi-storage-types to develop REVERT: 5822b42 VFS-1527 Add flags to mknod and open operations. git-subtree-dir: helpers git-subtree-split: 1f794085d2ac429d50358c6a18ba298ae8a81f6f
For those who are having the same problem on debug mode, I got it solved with dkislov's solution. CONFIG(release, debug|release) { INCLUDEPATH += "E:\AWS\aws-sdk-cpp-master\aws-cpp-sdk-core\include" win32: LIBS += -L$$PWD/../../aws-sdk-cpp-build/aws-cpp-sdk-core/Debug/ -laws-cpp-sdk-core Thanks, Ben |
Even using @dkislov 's solution it promotes other build errors like: |
For VS 2017 it is much more easier to get appropriate AWS SDK Nuget package. It takes latest stable version of libraries and setup in right way all VS targets files |
I am using VS 2017 and I am trying to use the latest version of the SDK. I run into the same error: Severity Code Description Project File Line Suppression State @dkislov The Nuget package is not up to date |
* X509 Binding * Submodules
Hello,
I built the awscppsdk with Cmake and Visual Studio (tried with both 2013 and 2015 versions) sucessfully. I am trying to build an executable using it. If I only use methods to upload to S3, it works fine (meaning the putObjectRequest). But as soon as I add this line:
Aws::S3::Model::GetObjectRequest getObjectRequest;
I get a linking error:
bla.obj : error LNK2001: unresolved external symbol "char const * const Aws::Http::CONTENT_TYPE_HEADER" (?CONTENT_TYPE_HEADER@Http@Aws@@3PEBDEB)
My executable is linking against aws-cpp-sdk-s3.lib and aws-cpp-sdk-core.lib.
Any idea ?
Cheers,
Emmanuel
The text was updated successfully, but these errors were encountered: