Notes for compiling and using V8 JavaScript Engine-use V8

Source: Internet
Author: User
Ii. Use V8

 

1. To use the static library version, you must introduce winmm. lib and ws2_32.lib.

# Pragma comment (Lib, "winmm. lib") <br/> # pragma comment (Lib, "ws2_32.lib") <br/> # pragma comment (Lib, "libv8-vc90-mt.lib ")

Otherwise, an error similar to the following occurs:

Error lnk2019: unresolved external symbol _ imp _ timegettime @ 0 referenced in function "public: void _ thiscall V8: Internal: Time: settocurrenttime (void )"(? Settocurrenttime @ time @ internal @ V8 @ qaexxz)

Error lnk2019: unresolved external symbol _ imp _ bind @ 12 referenced in function "public: Virtual bool _ thiscall V8: Internal: win32socket: BIND (INT) "(? Bind @ win32socket @ internal @ V8 @ uae_nh @ Z

)

2. The connection CRT mode remains the same

If the program you write is a dynamic link CRT (I .e./MD), the V8 library will also use the version compiled by the dynamic link CRT; otherwise, the following warning will be obtained:

1> link: Warning lnk4075: Ignoring '/Incremental 'due to'/ltcg 'specification

1> link: Warning lnk4098: defaultlib 'libcmt' conflicts with use of other libs; Use/nodefaultlib: Library

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.