Skip to content
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

Need 'Release' mode building support. #3

Open
Meonardo opened this issue Mar 8, 2021 · 3 comments
Open

Need 'Release' mode building support. #3

Meonardo opened this issue Mar 8, 2021 · 3 comments

Comments

@Meonardo
Copy link

Meonardo commented Mar 8, 2021

Great instructions you made!
Build the dll project in Debug mode was successfully,
but when I try to build in the Release mode, tons error came out, such like:
LNK2001 unresolved external symbol _xi_z file: MSVCMRT.lib(mstartup.obj)
libpjproject-x86_64-x64-vc14-Release-Dynamic.lib was build successfully.
VS2015, Windows10.

@AaronReynoldsUK
Copy link
Owner

Sounds like it's missing some object file references in the linking process.
I'll rebuild it when I get a chance to see if I can replicate.

@AaronReynoldsUK
Copy link
Owner

I've just re-read my notes and I couldn't build this under Release either so it might be worth looking through the PJSIP forums for this issue.

@robbz23
Copy link

robbz23 commented Oct 20, 2021

We were working on this for a while and thanks to your instructions we got our application working well in C#. We did have issues when we went to share the application with non-developer computers. It boiled down two 2 issues. First we never got the release mode compile to work. This was because of the mscrt.lib exclusion. This should be done only on the Debug and not Release or Any Configuration profile.

Linker - Input (or in All Options)
Ignore Specific Default Libraries = msvcrt.lib;%(IgnoreSpecificDefaultLibraries)

This was preventing it from building in release mode. We couldn't use the debug mode because it would make our .dlls dependent on VCRUNTIME140D.dll which is the debug version of the VC++ library. With release mode working it dropped that D on the end and used the release version of that library also.

Thanks so much for documenting this Aaron and I hope this helps out anyone else having problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants