Skip to content

Bug: LNK2019 and LNK1120 linker errors due to unresolved external symbol #7

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

Open
spiffynacho opened this issue May 12, 2025 · 0 comments

Comments

@spiffynacho
Copy link

Current Behaviour

When compiling AC with module enabled, the following errors occur:

LNK2019: unresolved external symbol "void __cdecl AddBreakingNewsOverrideScripts(void)" (?AddBreakingNewsOverrideScripts@@yaxxz) referenced in function "void __cdecl AddModulesScripts(void)" (?AddModulesScripts@@yaxxz)
LNK1120: 1 unresolved externals

Expected Behaviour

AC should compile without issue

Steps to reproduce the problem

  1. Open project in Cmake
  2. Configure in Cmake
  3. Generate in Cmake
  4. Open project in Visual Basic
  5. Build all

Extra Notes

Builds fine with breaking-news-override disabled

AC rev. hash/commit

AzerothCore rev. 8b4b37fdbbb0 2025-05-12 00:27:24 +0000 (master branch) (Win64, RelWithDebInfo, Static)
Connected players: 0. Characters in world: 0.
Connection peak: 0.
Server uptime: 1 minute(s) 54 second(s)
Update time diff: 1ms. Last 1 diffs summary:
|- Mean: 1ms
|- Median: 1ms
|- Percentiles (95, 99, max): 1ms, 1ms, 1ms
Using SSL version: OpenSSL 3.0.11 19 Sep 2023 (library: OpenSSL 3.0.11 19 Sep 2023)
Using Boost version: 1.81.0
Using CMake version: 3.27.7
Using MySQL version: 80404
Found MySQL Executable: C:/Program Files/MySQL/MySQL Server 8.4/bin/mysql.exe
Compiled on: Windows 10.0.20348
Worldserver listening connections on port 8085
Realmlist (Realm Id: 1) configured in port 8085
VMAPs status: Enabled. LineOfSight: true, getHeight: true, indoorCheck: true
MMAPs status: Enabled
maps directory located in C:/Build/bin/RelWithDebInfo/Data/maps. Total size: 291014951 bytes
vmaps directory located in C:/Build/bin/RelWithDebInfo/Data/vmaps. Total size: 658130721 bytes
mmaps directory located in C:/Build/bin/RelWithDebInfo/Data/mmaps. Total size: 2192910844 bytes
Default DBC locale: enUS.
All available DBC locales: enUS
Using World DB: ACDB 335.13-dev
Latest LoginDatabase update: 2025_02_16_01.sql
Latest CharacterDatabase update: mod_solo_craft.sql
Latest WorldDatabase update: z_filter_disabled_and_trash.sql
LoginDatabase queue size: 0
CharacterDatabase queue size: 0
WorldDatabase queue size: 0
List of enabled modules:
|- mod-ah-bot
|- mod-solo-lfg
|- mod-solocraft
|- mod-weekendbonus

Operating system

Windows Server 2022

Custom changes or Modules

  • mod-ah-bot
  • mod-solo-log
  • mod-solocraft
  • mod-weekendbonus
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

1 participant