dllimport


Mangled member function name different during dllimport


I'm getting some unresolved externals when importing a DLL of a project (Project 1) in a .exe project (Project 2) using MSVC 2013 (it compiles fine in Mingw 4.8.1):
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class chakra::Message * __thiscall chakra::PublisherSubscriberChannel::GetMessageA(unsigned __int64)" (__imp_?GetMessageA#PublisherSubscriberChannel#chakra##QAEPAVMessage#2#_K#Z) referenced in function "public: virtual void __thiscall Bar2::ProcessMessages(void)" (?ProcessMessages#Bar2##UAEXXZ)
test_wrap.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class chakra::Message * __thiscall chakra::PublisherSubscriberChannel::GetMessageA(unsigned __int64)" (__imp_?GetMessageA#PublisherSubscriberChannel#chakra##QAEPAVMessage#2#_K#Z)
The function GetMessage is a member function of class PublisherSubscriberChannel of namespace chakra in Project 1.
Examined the .exp and .dll file of Project 1 using dumpbin.exe /exports and found the function to be exported as ?GetMessage#PublisherSubscriberChannel#chakra##QAEPAVMessage#2#_K#Z whereas during importing it is looking for ?GetMessageA#PublisherSubscriberChannel#chakra##QAEPAVMessage#2#_K#Z as per the above error.
It happens only when I #include "Ogre.h" or any of the other Ogre headers in test_wrap.cxx file (which is a SWIG generated file).
Does anyone have any idea why the function name mismatch with the extra 'A'?

Related Links

Cannot create automation object - lotusscript
DllImport is not found C++
Mangled member function name different during dllimport
how to use DllImport in metro-style app
Converting doc file to post script
How can I get a COM component which can be used on Windows phone 8 project with C#
Externs and DLL imports
Mixed native and managed code heap corruption
MarshalDirectiveException
call unmanaged C++ code from C# using pinvoke
Detecting DLL Code Splicing
WOW64 Redirection and LoadLibrary
Using C# dll in Windows phone 7
Python 2.5 Import dll AttributeError
Replacing the Import Table in PE file by standart LoadLibrary
Unresolved external symbol

Categories

HOME
windows
phpword
jmeter
redux-form
angular-formly
case
carousel
aws-cli
hugo
nested-if
iis-6
nstableheaderview
qpython
augeas
java.util.logging
datastage
libc
radgridview
internationalization
smartclient
soci
solrcloud
simpleitk
microsoft-ocr
rubymotion
postscript
qliksense
zxing
xunit
jboss6.x
moses
fragment-backstack
apktool
genexus-sd
soot
gp
winpe
utorrent
android-sugarorm
card.io
jett
jwplayer6
video-capture
playframework-2.1
mongoose-schema
watchface
lpsolve
oim
magento-2.0.7
term
chai-as-promised
dbcontext
dtsearch
lightning
corruption
compiler-design
otp
css-transforms
pybrain
django-1.10
rxtx
rsa-archer-grc
materialized-path-pattern
pytables
mapxtreme
omxplayer
custom-lists
jtwig
bizagi
project-organization
gcloud-ruby
redis-cluster
beanstalk
sciruby
google-books
phonertc
batik
finalbuilder
dulwich
ocra
liquid-layout
zxspectrum
java-security
gamekit
exceldatareader
structuremap3
trdion2011
spring-remoting
websphere-esb
conditionaltagsupport
notorm
gtm-oauth2
scrypt
printdialog
tlf
ui-select2
flex++
process-explorer
octal
sqlclr
extreme-programming
onmousemove
pstack
veracity
boost-signals
fusefabric
josql
failing-tests
relative
expression-blend-4
saxparseexception
google-ajax-api
instantiationexception
aspmenu
openfaces
echo3
netbeans6.1

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App