zoukankan      html  css  js  c++  java
  • VS的使用

    配置一个工程

    问题描述:

    要运行一个源码工程,工程中含有层级目录,.cpp与.h在多级目录中混合存储。并且该工程的运行依赖一些静态库(.lib)与动态库(.dll)。

    建立:

    1. .h拷贝至$(ProjectDir)include下,可以在search栏下用.h来搜索层级目录下所有*.h;
    2. 把*.cpp拷贝至$(ProjectDir)src下;
    3. 第三方库拷贝至thirdparty目录下,并且分”include”、“lib”、(src)二级目录;
    4. VS下右击solution->add->existing item将所有.cpp、.h文件添加到工程中;
    5. Solution->property->configuration properties->C++->general->additional include directories->((ProjectDir)include;)(ProjectDir) hirdpartyinclude;
    6. Solution->property->configuration properties->linker->general-> additional include directories ->$(ProjectDir) hirdpartylib ->linker->input->additional dependencies: the name of lib
    7. Set output path: Solution->property->configuration properties->general -> output directory : .in

    error 1:

    include iostream: skipped when looking for precompiled header use
    Solution: #include “stdafx.h”在文件的最上方

    快捷键

    F10		//next
    F11		//step into
    Shift F11	 //step out
    F5		//run to next break point
    F9 		//set break point
    
  • 相关阅读:
    py-day2-4 python 集合
    LR_问题_控制器不能使用定义的负载生成器
    LR_问题_无法使用LR的Controller,提示缺少license
    LR_问题_在导入wsdl时出现parsing error
    class, extends和super es6语法
    格式化日期
    CLR
    【sqlserver】批量插入10万数据
    php正则表达式匹配函数
    css overflow
  • 原文地址:https://www.cnblogs.com/fariver/p/6500792.html
Copyright © 2011-2022 走看看