我对编程比较陌生。我正在尝试使用Visual Studio 2005进行编程。以下是代码
#include <stdio.h>
#include <conio.h>
#include "dynamixel.h"
#pragma comment(lib,"dynamixel.lib")
#define DEFAULT_PORTNUM 5
#define DEFAULT_BAUDNUM 1
void main() { dxl_initialize(DEFAULT_PORTNUM,DEFAULT_BAUDNUM); }
我添加了环境变量并为包含和库文件设置了VC ++目录。我收到以下错误:
1>------ Build started: Project: Test1, Configuration: Debug Win32------ 1>Compiling... 1>test source.cpp 1>Linking... 1>test source.obj : error LNK2019: unresolved external symbol _dxl_initialize@8 referenced in function _main 1>C:\Users\Rambo\Documents\Visual Studio 2005\Projects\Test1\Debug\Test1.exe : fatal error LNK1120: 1> unresolved externals 1>Build log was saved at "file://c:\Users\Muqeet\Documents\Visual Studio 2005\Projects\Test1\Test1\Debug\BuildLog.htm" 1>Test1 - 2 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
我只有源文件。非常感谢任何解决方案。