C + + can only compile unable to run or missing commands

Source: Internet
Author: User

-mwindows-lcomctl32-lwinmm-lws2_32-lodbc32-lmysql-lwinspool
1. Tools-Compile Options-compiler-Add the following command to the connector command line:
-mwindows
2. Error occurred: undefined reference to ' [email protected] '
WORKAROUND: Tools-Compile Options-compiler-Add the following command to the connector command line:-LWINMM
3.undefined reference to ' [email protected] ':
Add Comctl32.lib in Project Setup
Add-lcomctl32 to the link option

-mwindows-lcomctl32-lmysql-lwinmm
4.DEV C + + cannot debug the problem:
compiler, add the following command at compile time
Input:-G
5.undefined reference to ' [email protected] '
-lwinspool
6.
For MinGW, use the WIN32API function to include the corresponding header file, such as gethostname need to #include <winsock.h>
7. Undefined reference to ' [email protected] '
-lws2_32
8. Hint Wm_ctlcolor not defined
Introduced: #include <windowsx.h>
9. Connection to MS SQL Server database error:
OBJECTS/MINGW/MAIN.O:MAIN.C: (. text+0x398e): Undefined reference to ' [email protected] '
OBJECTS/MINGW/MAIN.O:MAIN.C: (. text+0x39b6): Undefined reference to ' [email protected] '
OBJECTS/MINGW/MAIN.O:MAIN.C: (. text+0x39d6): Undefined reference to ' [email protected] '
....
-lodbc32

C + + can only compile unable to run or missing commands

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.