-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
LNK2019 unresolved external symbol "id2name", the msvc project config need update #2177
Comments
This comment was marked as spam.
This comment was marked as spam.
@g0th1c54e4 Please add comments in English only. |
Could you test the build on the current |
The Just tested the build on the current
|
I try to compile the capstone v5.0.1 project on windows using .\msvc\capstone.sln. bug all test units failed.
![image](https://private-user-images.githubusercontent.com/18509370/276821952-613242ab-4320-430c-8c38-7c18156c8a8b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTM2MDQsIm5iZiI6MTczOTI1MzMwNCwicGF0aCI6Ii8xODUwOTM3MC8yNzY4MjE5NTItNjEzMjQyYWItNDMyMC00MzBjLThjMzgtN2MxODE1NmM4YThiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA1NTUwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3Njg4OGMyYjdlY2Q0NWM4NzA2OGYwYzllN2NmZWVkZjk0OTdlMWM1ZWU0NDZiNmUzMjkyYzZjNDNjMjE0NGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.XNxvb0F98dIbiPu3N-MaUtgbAtXt2GZFXq8gc5Bk0yM)
![image](https://private-user-images.githubusercontent.com/18509370/276822232-e8942fa0-41f1-4333-88fd-1074a0178d98.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTM2MDQsIm5iZiI6MTczOTI1MzMwNCwicGF0aCI6Ii8xODUwOTM3MC8yNzY4MjIyMzItZTg5NDJmYTAtNDFmMS00MzMzLTg4ZmQtMTA3NGEwMTc4ZDk4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA1NTUwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU3NDA4NDcyMGExYjg2ZTRhMzlkM2UyODVhZTFjNTMzZTE3MGQwMzY0MzAzYzE4NTQ3MDA1YzZhMGQyM2IzOTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ddeQsthfQtTYWb5FCKmOgDSUYuLDy53R_zZIyMYEnH8)
so many LNK2019 errors, just like: unresolved external symbol "id2name"
I found and fixed the bug.
The cause of the problem is that the static library project (capstone_static) forgot to include the file: Mapping.c. it just included Mapping.h. that's why so many symbols do not defined.
so that's the reason why all the test units project report LNK2019.
when you add it, everything is ok.
but still one error, I haven't had time to see why:
This seems to be a problem with the project configuration not being updated. This is a piece of cake to repair, so I won’t go into details.
The text was updated successfully, but these errors were encountered: