Issue information

Issue ID
#6836
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Oct 31, 2012 0:58
Last Post
Hercules Elf Bot
Oct 31, 2012 8:37
Confirmation
N/A

Hercules Elf Bot - Oct 31, 2012 0:58

Originally posted by [b]cataclysmro[/b]
Ithink it is from [url="http://trac.rathena.org/browser/rathena/trunk/src/map/chrif.c?rev=16846"]trunk/src/map/chrif.c[/url]


Error 2 error LNK2019: unresolved external symbol _chrif_setport referenced in function _map_config_read D:\trunk\vcproj-10\map.obj map-server_sql
Error 3 error LNK2019: unresolved external symbol _chrif_setpasswd referenced in function _map_config_read D:\trunk\vcproj-10\map.obj map-server_sql
Error 4 error LNK2019: unresolved external symbol _chrif_setuserid referenced in function _map_config_read D:\trunk\vcproj-10\map.obj map-server_sql
Error 5 error LNK2019: unresolved external symbol _chrif_checkdefaultlogin referenced in function _do_init D:\trunk\vcproj-10\map.obj map-server_sql
Error 6 error LNK1120: 5 unresolved externals D:\trunk\map-server_sql.exe map-server_sql

Hercules Elf Bot - Oct 31, 2012 3:15

Originally posted by [b]Ind[/b]
for some reason msvc thinks inline means static?wat mmm

This post has been edited by Ind on Oct 31, 2012 3:21

Hercules Elf Bot - Oct 31, 2012 3:31

Originally posted by [b]Ind[/b]
Fixed in [rev=16851]

Hercules Elf Bot - Oct 31, 2012 4:33

Originally posted by [b]cataclysmro[/b]
Thanks, it's working fine now

Hercules Elf Bot - Oct 31, 2012 8:37

Originally posted by [b]GreenBox[/b]
@Ind
The linker can't perform optimization, so there is no why to export a symbol that only the compiler can use.