-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
EC2 Linker Error #189
Comments
We have encountered this problem sporadically in the past. Are you linking statically? Can you find that symbol (or any of the other extern strings its declared next to) if you dumpbin /symbols on aws-cpp-sdk-core.lib? |
Having the same issue with Visual Studio 2015. But only if I use the x64 - version. |
This issue is usually caused by a missing dll import call. We just improved this on our latest push to make it easier to do this right. For now, can you wipe out everything you've done in your project properties related to the SDK and try using Nuget package AWSSDKCPP-EC2? It will make sure your project is setup properly for each target. Sent from my iPhone
|
I have AWSSDKCPP-Core + Redist and AWSSDKCPP-SQS & Redist. Not sure if that causes some conflicts? |
Is your issue with EC2 or SQS? Do you need the EC2 binary? Anyways there should be no conflicts. Sent from my iPhone
|
For me at least I am using the SQS - SDK but the error-message is the same that was mentioned in the first post "error LNK2001: unresolved external symbol "char const * const Aws::Http::CONTENT_TYPE_HEADER" (?CONTENT_TYPE_HEADER@Http@Aws@@3PBDB)" |
And the error happens when you use the NuGet package? Sent from my iPhone
|
That is excatly what I used. I can send you a Visual Studio Solution Example project if that helps |
What version? Can you try updating to latest? Sent from my iPhone
|
Will try. I was working with 0.13.4 |
Still getting the same issue with 0.13.5 (Tried clean & rebuild) -> x64 / Release |
AWSSDKCPP-transfer is not available through NuGet. Is there any plan to release through it in the near future? |
There is, I keep messing up the export. I'll try and get this updated as soon as possible. |
Hello, I was exactly with the same problem while trying to compile the example code; Before, I had generated the project by CMake using the default settings. I'm using Visual Studio Community 2015/up3 on Windows 10 and https://github.com/aws/aws-sdk-cpp downloaded yesterday. Since I did not use NuGet, I changed the following properties in the project in Visual Studio (Some settings I compared with the S3 SDK project); [VC++ Directories] Library Directories [C/C++ >> General] [Linker >> General] [Linker >> Input] [C/C++ >> Preprocessor] |
I am coming to this late but cloning the git repository and building locally then using the LIB/DLL combo in a simple console test program I had the same 'unresolved external' linker error. I resolved it by adding these pre-processor defines to my console test program's project: USE_WINDOWS_DLL_SEMANTICS These affect what AWS_CORE_API becomes in the header files. See aws/core/Core_Exports.h. |
Can this issue be fixed in the SDK? |
This should have been fixed, please follow the instructions in this issue. Reopen if you still have problem. |
(1) Missing initializer issues for gcc 4.9.4. (2) StdIOStreamInputStream::ReadImpl() should return true when attempting to read bytes from empty stream.
Hello,
When I create an instance of the classes Aws::EC2::Model::CreateSecurityGroupRequest or
Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest, I am getting a linker error :
error LNK2001: unresolved external symbol "char const * const Aws::Http::CONTENT_TYPE_HEADER" (?CONTENT_TYPE_HEADER@Http@Aws@@3PBDB)
I'm using visual studio 2013 on windows 7 and AWS Version 0.12.3.
I have noticed that the string is declared in aws-sdk-core and I have included aws-sdk-core.lib in my project (it is a depedency anyway),but still I'm getting the above linker error.
The text was updated successfully, but these errors were encountered: