Jump to content
  • 0
MyKiel02

Compiling Problem

Question

Hi,

 

I've been searching for solutions for my problem for weeks already, but unfortunately, luck's not on my side.

 

So, my problem is that when I'm trying to compile my server, I get these errors (please see below screenshot)

 

post-1763-0-33518200-1458324830_thumb.png

 

 

If anyone here knows the solution, please please please help me because it has been buggin' me for weeks already!

 

Thank you so so so much in advance!

 

Note: I'm using VS2012 running on Windows 10 64bit.

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

There seems to be something very wrong with your Visual Studio setup. In the log it mentions running "Microsoft ® 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86". That doesn't belong to VS2012, but is much, much older. cl version 12 was shipped with Visual Studio 6 (18 years ago).

I suggest uninstalling visual studio, finding and deleting any leftovers from very old versions, and reinstalling it.

 

Edit: some reference from other people who had the same problem on MSDN:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/e98908c0-002c-4d74-a0d6-e5cb2eb732d2/cannot-compile-defualt-console-application-on-fresh-installs-of-vs2012-or-vs2010?forum=vcgeneral

https://social.msdn.microsoft.com/Forums/vstudio/en-US/829bf89b-8693-409e-9907-d5debef42a9f/link-fatal-error-lnk1181-cannot-open-input-file-obj?forum=vcgeneral

Share this post


Link to post
Share on other sites
  • 0

Corrupted project?

Clean the project first?

@@Haru

 

Hello! Thank you for the reply! I've done that many times but the issue still persist. Also, I've downloaded new server files from the repository using TortoiseGit (please see below screenshot), tried to compile it but I'm still encountering the errors.

 

post-1763-0-47844100-1458329640_thumb.png

Edited by MyKiel02

Share this post


Link to post
Share on other sites
  • 0

Umm, never seen anything like that o.o I'm not familiar with TortoiseGit, but it should work like any other git client...

 

Could you show the full content of the build output pane after a clean and rebuild? (the tab next to the one you screenshotted - I don't remember the exact name, and I don't have a windows PC nearby to check)

Share this post


Link to post
Share on other sites
  • 0

Umm, never seen anything like that o.o I'm not familiar with TortoiseGit, but it should work like any other git client...

 

Could you show the full content of the build output pane after a clean and rebuild? (the tab next to the one you screenshotted - I don't remember the exact name, and I don't have a windows PC nearby to check)

 

Hi @@Haru,

 

Kindly see below. Thank you!

 

Clean:

 

1>------ Clean started: Project: map-server, Configuration: Release Win32 ------

2>------ Clean started: Project: mapcache, Configuration: Release Win32 ------

3>------ Clean started: Project: login-server, Configuration: Release Win32 ------

4>------ Clean started: Project: char-server, Configuration: Release Win32 ------

========== Clean: 4 succeeded, 0 failed, 0 skipped ==========

 

 

Rebuild:

 

1>------ Rebuild All started: Project: char-server, Configuration: Release Win32 ------

2>------ Rebuild All started: Project: login-server, Configuration: Release Win32 ------

3>------ Rebuild All started: Project: mapcache, Configuration: Release Win32 ------

4>------ Rebuild All started: Project: map-server, Configuration: Release Win32 ------

1> Microsoft ® 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86

1> Copyright © Microsoft Corp 1984-1998. All rights reserved.

1>

1> cl ■/

1>

1> c

2> Microsoft ® 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86

1>

2> Copyright © Microsoft Corp 1984-1998. All rights reserved.

1>CL : Command line warning D4024: unrecognized source file type ' ■/', object file assumed

2>

4> Microsoft ® 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86

1>CL : Command line warning D4024: unrecognized source file type 'c', object file assumed

1> Microsoft ® Incremental Linker Version 11.00.50727.1

1> Copyright © Microsoft Corporation. All rights reserved.

4> Copyright © Microsoft Corp 1984-1998. All rights reserved.

4>

4> cl ■/

2> cl ■/

2>

2> c

2>

1>

4>

2>CL : Command line warning D4024: unrecognized source file type ' ■/', object file assumed

1> /out:.exe

4> \

2>CL : Command line warning D4024: unrecognized source file type 'c', object file assumed

2> Microsoft ® Incremental Linker Version 11.00.50727.1

2> Copyright © Microsoft Corporation. All rights reserved.

4>

4> p

4>

4>CL : Command line warning D4024: unrecognized source file type ' ■/', object file assumed

4>CL : Command line warning D4024: unrecognized source file type '\', object file assumed

2>

4>CL : Command line warning D4024: unrecognized source file type 'p', object file assumed

4> Microsoft ® Incremental Linker Version 11.00.50727.1

4> Copyright © Microsoft Corporation. All rights reserved.

4>

4> /out:.exe

4> ÿþ/

4> \

4> p

4>LINK : fatal error LNK1181: cannot open input file 'ÿþ/.obj'

3> Microsoft ® 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86

3> Copyright © Microsoft Corp 1984-1998. All rights reserved.

3>

3> cl ■/

3>

3>

3>CL : Command line warning D4024: unrecognized source file type ' ■/', object file assumed

2> /out:.exe

2> ÿþ/

2> c

2>LINK : fatal error LNK1181: cannot open input file 'ÿþ/.obj'

3> Microsoft ® Incremental Linker Version 11.00.50727.1

1> ÿþ/

1> c

1>LINK : fatal error LNK1181: cannot open input file 'ÿþ/.obj'

3> Copyright © Microsoft Corporation. All rights reserved.

3>

3> /out:.exe

3> ÿþ/

3>LINK : fatal error LNK1181: cannot open input file 'ÿþ/.obj'

========== Rebuild All: 0 succeeded, 4 failed, 0 skipped ==========

 

 

I have tried searching for a solution for warning D4024 and error LNK1181 on google, but still, nothing fixes the issue.

 

Thank you

Edited by MyKiel02

Share this post


Link to post
Share on other sites
  • 0

There seems to be something very wrong with your Visual Studio setup. In the log it mentions running "Microsoft ® 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86". That doesn't belong to VS2012, but is much, much older. cl version 12 was shipped with Visual Studio 6 (18 years ago).

I suggest uninstalling visual studio, finding and deleting any leftovers from very old versions, and reinstalling it.

 

Edit: some reference from other people who had the same problem on MSDN:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/e98908c0-002c-4d74-a0d6-e5cb2eb732d2/cannot-compile-defualt-console-application-on-fresh-installs-of-vs2012-or-vs2010?forum=vcgeneral

https://social.msdn.microsoft.com/Forums/vstudio/en-US/829bf89b-8693-409e-9907-d5debef42a9f/link-fatal-error-lnk1181-cannot-open-input-file-obj?forum=vcgeneral

 

Thank you, @@Haru! I'll try that as soon as I get home! I'll keep you posted!

Share this post


Link to post
Share on other sites
  • 0

 

 

1>------ Build started: Project: char-server, Configuration: Release x64 ------

2>------ Build started: Project: login-server, Configuration: Release Win32 ------

3>------ Build started: Project: mapcache, Configuration: Release Win32 ------

4>------ Build started: Project: map-server, Configuration: Release Win32 ------

1> grammar.c

1> libconfig.c

1> scanctx.c

1> scanner.c

2> grammar.c

2> libconfig.c

2> scanctx.c

2> scanner.c

3> core.c

3> console.c

3> des.c

3> grfio.c

4> grammar.c

4> libconfig.c

4> scanctx.c

4> scanner.c

3> memmgr.c

4> strbuf.c

2> strbuf.c

2> des.c

4> mt19937ar.c

2> mutex.c

4> conf.c

4> core.c

2> thread.c

2> account_sql.c

3> showmsg.c

4> console.c

2> HPMlogin.c

3> strlib.c

4> db.c

3> sysinfo.c

4> des.c

4> ers.c

3> utils.c

3> nullpo.c

2> ipban_sql.c

1> strbuf.c

1> mt19937ar.c

1> conf.c

1> core.c

4> grfio.c

2> login.c

1> console.c

1> db.c

3> mapcache.c

4> HPM.c

4> memmgr.c

4> mapindex.c

2> loginlog_sql.c

4> md5calc.c

2> conf.c

1> des.c

4> mutex.c

1> ers.c

2> core.c

1> HPM.c

1> memmgr.c

1> mapindex.c

4> nullpo.c

4> random.c

1> mutex.c

1> nullpo.c

4> showmsg.c

2> console.c

4> socket.c

2> db.c

4> sql.c

1> random.c

1> showmsg.c

2> ers.c

2> HPM.c

1> socket.c

4> strlib.c

2> memmgr.c

4> sysinfo.c

2> md5calc.c

2> nullpo.c

4> thread.c

1> sql.c

2> random.c

1> strlib.c

1> sysinfo.c

2> showmsg.c

4> timer.c

2> socket.c

1> thread.c

2> sql.c

1>..\src\common\strlib.c(1047): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data

1>..\src\common\strlib.c(1065): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data

2> strlib.c

4> utils.c

1> timer.c

1> utils.c

4> atcommand.c

4> battle.c

4> battleground.c

2> sysinfo.c

2> timer.c

2> utils.c

2> mt19937ar.c

1> HPMchar.c

1> char.c

4> buyingstore.c

1> geoip.c

1> int_auction.c

1> int_elemental.c

1> int_guild.c

1> int_homun.c

1>..\src\char\char.c(2663): warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data

1>..\src\char\char.c(2680): warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data

1>..\src\char\char.c(3014): warning C4267: '=' : conversion from 'size_t' to 'uint16', possible loss of data

1> int_mail.c

1> int_mercenary.c

1> int_party.c

1> int_pet.c

1> int_quest.c

1> int_storage.c

1> inter.c

2> Creating library ..\login-server.lib and object ..\login-server.exp

3> Generating code

2> Generating code

1>..\src\char\int_quest.c(267): warning C4267: '=' : conversion from 'size_t' to 'uint16', possible loss of data

1> loginif.c

1>..\src\char\inter.c(669): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data

1>..\src\char\inter.c(683): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data

1>..\src\char\inter.c(750): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data

1> mapif.c

1> pincode.c

4> channel.c

4> chat.c

3> Finished generating code

4> chrif.c

4> clif.c

4> date.c

4> duel.c

4> elemental.c

2> Finished generating code

4> guild.c

3> mapcache.vcxproj -> C:\Users\kielb\Desktop\myServer\XigeRO\vcproj-12\..\mapcache.exe

4> intif.c

4> irc-bot.c

4> itemdb.c

2> login-server.vcxproj -> C:\Users\kielb\Desktop\myServer\XigeRO\vcproj-12\..\login-server.exe

4> log.c

4> mail.c

4> map.c

4> mapreg_sql.c

4> homunculus.c

4> HPMmap.c

4> instance.c

4> mercenary.c

4> mob.c

4> npc.c

4> npc_chat.c

4> party.c

4> path.c

4> pc.c

4> pc_groups.c

4> pet.c

4> quest.c

4> script.c

4> searchstore.c

4> skill.c

4> status.c

4> storage.c

4> trade.c

4> unit.c

4> vending.c

4> Creating library ..\map-server.lib and object ..\map-server.exp

4> Generating code

1> Creating library C:\Users\kielb\Desktop\myServer\XigeRO\x64\Release\char-server.lib and object C:\Users\kielb\Desktop\myServer\XigeRO\x64\Release\char-server.exp

1>sql.obj : error LNK2001: unresolved external symbol mysql_close

1>sql.obj : error LNK2001: unresolved external symbol mysql_insert_id

1>sql.obj : error LNK2001: unresolved external symbol mysql_error

1>sql.obj : error LNK2001: unresolved external symbol mysql_set_character_set

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_fetch_column

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_prepare

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_error

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_num_rows

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_bind_result

1>sql.obj : error LNK2001: unresolved external symbol mysql_real_query

1>sql.obj : error LNK2001: unresolved external symbol mysql_fetch_row

1>sql.obj : error LNK2001: unresolved external symbol mysql_real_connect

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_insert_id

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_field_count

1>sql.obj : error LNK2001: unresolved external symbol mysql_real_escape_string

1>sql.obj : error LNK2001: unresolved external symbol mysql_store_result

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_execute

1>sql.obj : error LNK2001: unresolved external symbol mysql_ping

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_result_metadata

1>sql.obj : error LNK2001: unresolved external symbol mysql_num_fields

1>sql.obj : error LNK2001: unresolved external symbol mysql_free_result

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_fetch

1>sql.obj : error LNK2001: unresolved external symbol mysql_fetch_lengths

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_bind_param

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_store_result

1>sql.obj : error LNK2001: unresolved external symbol mysql_errno

1>sql.obj : error LNK2001: unresolved external symbol mysql_init

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_init

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_param_count

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_close

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_free_result

1>sql.obj : error LNK2001: unresolved external symbol mysql_fetch_field_direct

1>sql.obj : error LNK2001: unresolved external symbol mysql_stmt_errno

1>sql.obj : error LNK2001: unresolved external symbol mysql_escape_string

1>sql.obj : error LNK2001: unresolved external symbol mysql_num_rows

1>C:\Users\kielb\Desktop\myServer\XigeRO\x64\Release\char-server.exe : fatal error LNK1120: 35 unresolved externals

4> Finished generating code

4> map-server.vcxproj -> C:\Users\kielb\Desktop\myServer\XigeRO\vcproj-12\..\map-server.exe

========== Build: 3 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

There seems to be something very wrong with your Visual Studio setup. In the log it mentions running "Microsoft ® 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86". That doesn't belong to VS2012, but is much, much older. cl version 12 was shipped with Visual Studio 6 (18 years ago).

I suggest uninstalling visual studio, finding and deleting any leftovers from very old versions, and reinstalling it.

 

Edit: some reference from other people who had the same problem on MSDN:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/e98908c0-002c-4d74-a0d6-e5cb2eb732d2/cannot-compile-defualt-console-application-on-fresh-installs-of-vs2012-or-vs2010?forum=vcgeneral

https://social.msdn.microsoft.com/Forums/vstudio/en-US/829bf89b-8693-409e-9907-d5debef42a9f/link-fatal-error-lnk1181-cannot-open-input-file-obj?forum=vcgeneral

 

Thank you, @@Haru! I'll try that as soon as I get home! I'll keep you posted!

 

Hi @@Haru!

 

Good day!

 

My issue is now resolved.

 

I just deleted cl.exe from C:\Windows\SysWOW64 . Thank you for your help and patience!

Edited by MyKiel02

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.