Practice VC + + compiler cl compile C / C + + program

Environment: windows already installed VS2005
1, set the environment variable
Objective: cmd window automatically identify cl command settings: in the "My Computer" -> Properties -> Advanced -> Environment Variables in
INCLUDE D: \ Program Files \ Microsoft Visual Studio 8 \ VC \ include;
LIB D: \ Program Files \ Microsoft Visual Studio 8 \ VC \ lib;
PATH increase in D: \ Program Files \ Microsoft Visual Studio 8 \ VC \ bin;

In the cmd window, enter the cl prompt "can not find mspdb80.dll" solution:

Will be D: \ Program Files \ Microsoft Visual Studio 8 \ Common7 \ IDE directory mspdb80.dll and mspdbsrv.exe copy to D: \ Program Files \ Microsoft Visual Studio 8 \ VC \ bin the next;

2, cl compiled C program example
(1) write a Hello.c Notepad file, as follows
# Include <stdio.h>
main ()
(
printf ("Hello, World for c! \ n");
)
(2) compile the program and execute the cmd command line window, enter cl Hello.c, you can see the information generated Hello.exe file command line in the cmd window and then enter the Hello
Can see the implementation of the results: Hello, World for c!

3, cl compile C + + program examples
(1) use Notepad to write a Hello.cpp file
# Include <iostream>
using namespace std;
int main (int argc, char * argv [])
(
cout <<"hello, world for c + +!" <<endl;
return 0;
)
(2) compile the program and execute the cmd command line window, enter cl Hello.cpp, you can see the information generated Hello.exe file command line in the cmd window and then enter the Hello
Can see the implementation of the results: Hello, World for c + +!
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of Practice VC + + compiler cl compile C / C + + program

  • Build flex + spring + blazeds + hibernate application

    Build flex + spring + blazeds + hibernate application First, set up the project blazeds 1, will blazeds.war extract to a directory, such as: myflex /; 2, set up java works were such as: MyFlex, in the orientation of selection create project from exis ...

  • Nan-Jing 5: When IBatis.Hibernate mixed affairs, pay attention to your SQL

    [Problem] Now, in the development of the so-called multi-storey JavaEE applications, data persistence layer is always essential, and "Automatic" of ORM - Hibernate, and "all-manual-type" of SqlMap - IBatis, equivalent data are Per ...

  • Hibernate connection pool configuration

    Hibernate connection pool configuration <! - Jdbc -> <property name="connection.driver_class"> oracle.jdbc.driver.OracleDriver </ property> <property name="connection.url"> jdbc: oracle: thin: @ 10.203.14.132:15

  • hibernate to use the principle of

    The use of hibernate, implementation of data persistence. Has the following several processes. One configuration database connection information. Hibernate.config 2 configuration mapping. 3 use: the use of the process are the following steps: 3.1: Ge ...

  • hibernate generic generic DAO

    package org.lzpeng.dao; import java.io.Serializable; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Query; import org.hibernate.criterion.Criterion; import org.springside.modules.orm.hibernate.Page; /** * * @version 2009-1-10 *

  • Struts2 + hibernate + spring problem user log in

    dao layer services layer action jsp <tr> <td align="center"> <b> user name: </ b> </ td> <td> <s: textfield name = "czyNumber" cssClass = "textstyle" theme = "simple" size = &q

  • Based on JDBC, JPA Annotation achieve simple CRUD Generic Dao

    The origin of ideas are pretty long history of reasons: [Use iBATIS history] The use of iBATIS has been a long time, the system is to use the CRUD template tool to generate the code, although there are tools to generate, but looked at a lot of CRUD the Sq

  • Hibernate secondary cache

    Hibernate cache: 2-bit cache, also known as process-level cache or SessionFactory level cache, secondary cache can be shared by all of the session Cache configuration and the use of: Will echcache.xml (the document code in hibernate package directory ...

  • Hibernate's lazy strategy

    hibernate Lazy strategy can be used in: <class> tag, it can be true / false Tags can <PROPERTY> values true / false type of necessary tools to enhance <set> <list> can tag values true / false / extra <many-to-one> <on ...

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries