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

Unable linking in VS2012 C++ project #344

Open
abbategius opened this Issue Aug 24, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@abbategius

abbategius commented Aug 24, 2017

Hi All,

I'm new in libGammu.
I've started creating an empty console application in VS 2012, but even if I include the gammu.h and add the Additional Dependencies of Gammu.lib the linker raise the following error:

1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol _GSM_GetGlobalDebug referenced in function _wmain

This are the simple few lines of code, that cause the linker error:

#include "gammu.h"
#include <stdlib.h>
#include <stdio.h>

int _tmain(int argc, _TCHAR* argv[])
{
GSM_Debug_Info *di;
di = GSM_GetGlobalDebug();

return 0;

}

Someone can help me?

Thanks in advance
Giuseppe

@nijel

This comment has been minimized.

Show comment
Hide comment
@nijel

nijel Aug 24, 2017

Member

This symbol is really part of Gammu library, are you sure linker is actually using it? (I have no experience with VS, so I can't give better advice...)

Member

nijel commented Aug 24, 2017

This symbol is really part of Gammu library, are you sure linker is actually using it? (I have no experience with VS, so I can't give better advice...)

@abbategius

This comment has been minimized.

Show comment
Hide comment
@abbategius

abbategius Aug 24, 2017

Unfortunately I'm sure :)

I hope in suggestion by someone that used it in VS

thanks

abbategius commented Aug 24, 2017

Unfortunately I'm sure :)

I hope in suggestion by someone that used it in VS

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment