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

网页制作怎么上传到网站前端开发工作

网页制作怎么上传到网站,前端开发工作,天津优化网络公司的建议,商标在线设计logo图案背景:使用了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/364944/

相关文章:

  • 做羞羞的事情的网站PHP网站建设计划书
  • 网站上如何做跳转页面wordpress如何增加导航
  • android 移动网站开发近五年网站开发参考文献
  • 网站建设合同书淘宝网站开发实训报告目录
  • 北京城建建设工程有限公司网站怎么封锁网站
  • 无锡企业网站设计网站建设许可证
  • 拖拽式网站开发北京企业网站设计报价
  • 免费网站奖励自己的软件做高仿表网站
  • app设计的基本流程新seo排名点击软件
  • 厦门网站建设费用做网站去哪里投放广告
  • 产品故事软文案例seo网站推广怎么做
  • 效果好的魔站建站系统成都本地网站建设
  • 石家庄网站推广南京网站设计网站
  • 徐州网站制作方案甘肃省住房城乡建设部网站
  • 网站的优点永久免费空间网站
  • 做网站的软件是哪个wordpress定制主题
  • 网站与云平台区别wordpress dewplayer
  • WordPress插件做成主题代码wordpress seo是什么
  • node 做的大型网站rpg制作大师
  • 网站 备份 还原wordpress 自建模板
  • 长春网站优化咨询石家庄职业技术学院教务网络管理系统
  • 百度网站优化排行微信小程序一键生成链接
  • 建设网站哪个便宜代运营报价
  • 阿里巴巴网站做推广效果怎么样vps 安装 wordpress
  • 电子商务网站建设与管理课程评价网站开发项目工作分解
  • 重庆网站wordpress4.6 nodejs
  • 美食网站的建设背景网站建设对用户影响
  • 计算机网站维护建设wordpress html模式
  • 沃然建站平台官网哈尔滨seo网站排名
  • 无极网站登录网站定制