当前位置: 首页 > news >正文

浙江响应式网站建设qq wordpress登陆地址

浙江响应式网站建设,qq wordpress登陆地址,工业产品设计软件,网页制作网站首页设计背景:使用了code server,安装CMAKE和CMAKE TOOLS,但是通过ctrlshiftp打开命令面板,运行随便一个cmake指令,都出现了指令无法找到。具体为“命令"CMake: 配置"导致错误 (command ‘cmake.configure’ not fou…

背景:使用了code server,安装CMAKE和CMAKE TOOLS,但是通过ctrl+shift+p打开命令面板,运行随便一个cmake指令,都出现了指令无法找到。具体为“命令"CMake: 配置"导致错误 (command ‘cmake.configure’ not found)”。
在这里插入图片描述

  1. C++工程
    通过C++ Create project创建要给C++工程,里面创建好了src、include、lib和output文件夹,以及Makefile。可以直接通过make实现工程的编译。
    在这里插入图片描述

  2. Makefile
    默认的Makefile文件如下

#
# 'make'        build executable file 'main'
# 'make clean'  removes all .o and executable files
## define the Cpp compiler to use
CXX = g++# define any compile-time flags
CXXFLAGS	:= -std=c++17 -Wall -Wextra -g# define library paths in addition to /usr/lib
#   if I wanted to include libraries not in /usr/lib I'd specify
#   their path using -Lpath, something like:
LFLAGS =# define output directory
OUTPUT	:= output# define source directory
SRC		:= src# define include directory
INCLUDE	:= include# define lib directory
LIB		:= libifeq ($(OS),Windows_NT)
MAIN	:= main.exe
SOURCEDIRS	:= $(SRC)
INCLUDEDIRS	:= $(INCLUDE)
LIBDIRS		:= $(LIB)
FIXPATH = $(subst /,\,$1)
RM			:= del /q /f
MD	:= mkdir
else
MAIN	:= main
SOURCEDIRS	:= $(shell find $(SRC) -type d)
INCLUDEDIRS	:= $(shell find $(INCLUDE) -type d)
LIBDIRS		:= $(shell find $(LIB) -type d)
FIXPATH = $1
RM = rm -f
MD	:= mkdir -p
endif# define any directories containing header files other than /usr/include
INCLUDES	:= $(patsubst %,-I%, $(INCLUDEDIRS:%/=%))# define the C libs
LIBS		:= $(patsubst %,-L%, $(LIBDIRS:%/=%))# define the C source files
SOURCES		:= $(wildcard $(patsubst %,%/*.cpp, $(SOURCEDIRS)))# define the C object files 
OBJECTS		:= $(SOURCES:.cpp=.o)#
# The following part of the makefile is generic; it can be used to 
# build any executable just by changing the definitions above and by
# deleting dependencies appended to the file from 'make depend'
#OUTPUTMAIN	:= $(call FIXPATH,$(OUTPUT)/$(MAIN))all: $(OUTPUT) $(MAIN)@echo Executing 'all' complete!$(OUTPUT):$(MD) $(OUTPUT)$(MAIN): $(OBJECTS) $(CXX) $(CXXFLAGS) $(INCLUDES) -o $(OUTPUTMAIN) $(OBJECTS) $(LFLAGS) $(LIBS)# this is a suffix replacement rule for building .o's from .c's
# it uses automatic variables $<: the name of the prerequisite of
# the rule(a .c file) and $@: the name of the target of the rule (a .o file) 
# (see the gnu make manual section about automatic variables)
.cpp.o:$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<  -o $@.PHONY: clean
clean:$(RM) $(OUTPUTMAIN)$(RM) $(call FIXPATH,$(OBJECTS))@echo Cleanup complete!run: all./$(OUTPUTMAIN)@echo Executing 'run: all' complete!
  1. CMake
    创建一个新的c++工程,一直无法启动cmake,刷新网页也没用。
    解决办法:自己创建文件CMakeLists.txt保存,然后刷新,就可以跳出来cmake的操作台和指令了。然后删除该文件,重新用cmake指令操作下。
    在这里插入图片描述

  2. 基本要补充的Cmake代码

set(CMAKE_CXX_STANDARD 11)set(CMAKE_EXPORT_COMPILE_COMMANDS ON)include_directories(${PROJECT_SOURCE_DIR}/include)add_executable(main 
${PROJECT_SOURCE_DIR}/src/main.cpp
${PROJECT_SOURCE_DIR}/src/other.cpp
)set_target_properties(main PROPERTIES RUNTIME_OUTPUT_DIRECTORY  ${PROJECT_SOURCE_DIR}/output/)
http://www.yayakq.cn/news/464112/

相关文章:

  • 自动的网站设计制作搜狐做网站
  • 怎么查询网站是哪家公司做的网页翻译工具
  • 南城区网站仿做住房和城乡建设部网站第九批
  • 如何做网站可以吗案例应聘网络营销做网站推广
  • html5 网站模版茶具网站模板
  • 站长统计app软件下载官网软件开发平台是什么
  • 免费推广网站排名手机版oa系统
  • 烟台福山网站建设中国互联网公司排名2023
  • 云主机网站的空间在哪网站制作公司多少钱
  • 7星彩网站开发海口网站制作案例
  • 如何做企业网站方法哪里有做推文的网站
  • 企业网站建设知乎建站网址打不开
  • 响应式模板网站建设系统优化有什么用
  • 网站建设忄金手指专业北京百度seo排名点击器
  • google 网站收录各种资源都有的搜索引擎
  • 高端公司形象墙效果图购物网站seo搜索引擎前期分析
  • 做网站需要用socket吗成寿寺网站建设公司
  • 中山网站制作设计章丘做网站的公司
  • 企业网站制作优化wordpress从指定目录获取文章
  • 潍坊做网站好看电子商务网站建设风格
  • 从化市网站建设wordpress shortinit
  • 一家专做灯的网站招聘室内设计可以去哪些公司
  • 贵州茅台酒股份有限公司网站做计算机网站的总结
  • 在北京网站建设的岗位职责北京网站建设可选兴田德润
  • 北京建设网站兼职普工网站seo优化查询
  • 找单位做网站需要注意什么wordpress 件康
  • 衡阳网站制作公司wordpress所有标签
  • 要建设一个网站需要准备些什么赵公口网站建设北京网站设计
  • 教你免费申请个人网站株洲网站建设企业
  • 网站图标只做那个网站有免费的模板