Dev-CPP/mingw32/GCC Column

Source: Internet
Author: User

This directory is a sub-file directory introduced by the Language/tool. This section describes the content related to Dev-CPP/mingw32 and GCC.

For details, see the link: column of dipper.

Http://blog.csdn.net/VisionCat/category/96409.aspx

Some problems occurred when I used Lua with Dev CPP today. I would like to record it for future search.

Open Dev CPP to create a console project and enter the followingCode

 

# Include <stdio. h>
Extern "C "{
# Include "Lua. H"
# Include "lualib. H"
# Include "lauxlib. H"
}

/* Lua interpreter pointer */
Lua_state * l;
Int main (INT argc, char * argv [])
{
/* Initialize Lua */
L = lua_open ();
/* Load the basic Lua database */
Lual_openlibs (L );
/* Run the script */
Lual_dofile (L, "test. Lua ");
/* Clear Lua */
Lua_close (L );
/* Pause */
Printf ("press enter to exit... ");
Getchar ();
Return 0;
}

An error occurred while compiling, prompting that the header file could not be found.

Copy the header file to the dev CPP include directory, compile the file, and compile the file successfully!

Continue the link. We are disappointed to report an error.

After searching online, many of them use the VC compiler, and no proper solution is found.

Finally, I took a closer look at the link to the static library.

Click project options and select parameters

Add the correct lib file under the connector.

After the link is passed, the generated EXE can be output correctly.

 

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.