ld: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1
问题:使用vscode初学c++,学习函数的分文件编写。遇到报错:ld: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1函数分文件编写一般有四个步骤: 创建后缀名为.h的头文件 创建后缀名为.cpp的源文件 在头文件中写函数声明 在源文件中写函数定义 函数声明的头文件 swap.h#include <ios
原创
2022-02-14 10:22:36 ·
1803 阅读 ·
5 评论