คำถามติดแท็ก lnk2019

11
วิธีแก้ข้อผิดพลาด LNK2019: สัญลักษณ์ภายนอกที่ไม่ได้รับการแก้ไข - ฟังก์ชัน
ฉันได้รับข้อผิดพลาดนี้ แต่ไม่รู้วิธีแก้ไข ฉันใช้ Visual Studio 2013 ฉันตั้งชื่อโซลูชันว่าMyProjectTest นี่คือโครงสร้างของโซลูชันการทดสอบของฉัน: - ฟังก์ชั่น h #ifndef MY_FUNCTION_H #define MY_FUNCTION_H int multiple(int x, int y); #endif -function.cpp #include "function.h" int multiple(int x, int y){ return x*y; } - main.cpp #include <iostream> #include <cstdlib> #include "function.h" using namespace std; int main(){ int a, b; cin >> …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.