Message boards : Server programs : Unresolved External symbol
Message board moderation
Author | Message |
---|---|
Send message Joined: 6 Jun 12 Posts: 4 |
Hi. I try compile "hello,world" program for BOINC project on my server. I use Windows 7 x64 Ultimate, Visual Studio 2011 Developer Preview. Source code: #include <stdio.h> #include <conio.h> #include <boinc_api.h> #include <boinc_win.h> int main() { boinc_init(); printf("Hello, World!\n"); boinc_finish(1); return 0; } Output: 1>------ Build started: Project: Hello, World!, Configuration: Debug Win32 ------ 1>Hello, World.obj : error LNK2019: unresolved external symbol _boinc_init referenced in function _main 1>Hello, World.obj : error LNK2019: unresolved external symbol _boinc_finish referenced in function _main 1>D:\TOP\Grid\Apps\Hello, World!\Debug\Hello, World!.exe : fatal error LNK1120: 2 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
Send message Joined: 23 May 06 Posts: 41 |
You must link the boinc api and boinc lib together with your object file. yoyo Germany biggest distributed computing community Rechenkraft.net |
Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.