Home » Developing U++ » UppHub » sysinfo gets error
Re: sysinfo gets error [message #32554 is a reply to message #32551] |
Tue, 24 May 2011 17:58   |
silverx
Messages: 62 Registered: March 2011
|
Member |
|
|
I decided to strip down the code in sysinfo, and go after only the pieces of information that I really want, so I wrote a small program, but I get a link error when I try and run it.
My code is a simple window with a push button on it to execute the code.
The main code is as follows which is copied directly from the sysinfo demo:
#include "mysysinfo1.h"
using namespace Upp;
#include <SysInfo/SysInfo.h>
static bool end = false;
void mysysinfo1::Gettheinfo()
{
String manufacturer, productName, version, mbSerial;
Date releaseDate;
int numberOfProcessors;
GetSystemInfo(manufacturer, productName, version, numberOfProcessors, mbSerial);
// romptOK("Hello world");
PromptOK(mbSerial);
PromptOK(GetDesktopFolder());
}
mysysinfo1::mysysinfo1()
{
CtrlLayout(*this, "My System Information program");
// add below for using a button
btnDoSomething <<= THISBACK(Gettheinfo);
}
GUI_APP_MAIN
{
mysysinfo1().Run();
}
And the error that I am getting on it is
----- CtrlLib ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (1 / 9)
----- CtrlCore ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (2 / 9)
----- Draw ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (3 / 9)
----- plugin/bmp ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (4 / 9)
----- RichText ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (5 / 9)
----- Core ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (6 / 9)
----- plugin/z ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (7 / 9)
----- plugin/png ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (8 / 9)
----- mysysinfo1 ( GUI SSE2 MAIN MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (9 / 9)
main.cpp
mysysinfo1: 1 file(s) built in (0:03.10), 3105 msecs / file, duration = 3120 msecs, parallelization 0%
Linking...
main.obj : error LNK2019: unresolved external symbol "void __cdecl GetSystemInfo(class Upp::String &,class Upp::String &,class Up
p::String &,int &,class Upp::String &)" (?GetSystemInfo@@YAXAAVString@Upp" target="_blank">>@Upp@@00AAH0@Z" target="_blank">>@Z) referenced in function "public: void __t
hiscall mysysinfo1::Gettheinfo(void)" (?Gettheinfo@mysysinfo1@@QAEXXZ)
C:\upp\out\MSC9.Debug.Debug_full.Gui.Sse2\mysysinfo1.exe : fatal error LNK1120: 1 unresolved externals
There were errors. (0:03.65)
|
|
|
 |
 |
sysinfo gets error
By: silverx on Tue, 24 May 2011 15:31
|
 |
|
Re: sysinfo gets error
By: koldo on Tue, 24 May 2011 17:38
|
 |
|
Re: sysinfo gets error
By: silverx on Tue, 24 May 2011 17:58
|
 |
|
Re: sysinfo gets error
By: koldo on Tue, 24 May 2011 22:36
|
 |
|
Re: sysinfo gets error
By: tojocky on Wed, 25 May 2011 10:01
|
 |
|
Re: sysinfo gets error
By: silverx on Thu, 26 May 2011 13:08
|
 |
|
Re: sysinfo gets error
By: koldo on Fri, 27 May 2011 09:03
|
 |
|
Re: sysinfo gets error
By: tojocky on Fri, 27 May 2011 15:40
|
 |
|
Re: sysinfo gets error
By: koldo on Mon, 30 May 2011 08:17
|
 |
|
Re: sysinfo gets error
By: koldo on Mon, 30 May 2011 14:14
|
 |
|
Re: sysinfo gets error
By: tojocky on Mon, 30 May 2011 16:17
|
 |
|
Re: sysinfo gets error
By: koldo on Mon, 30 May 2011 21:25
|
 |
|
Re: sysinfo gets error
|
 |
|
Re: sysinfo gets error
By: koldo on Tue, 06 December 2011 23:35
|
 |
|
Re: sysinfo gets error
|
 |
 |
Re: sysinfo gets error
|
 |
|
Re: sysinfo gets error
By: Tom1 on Wed, 07 December 2011 11:09
|
 |
|
Re: sysinfo gets error
By: koldo on Thu, 08 December 2011 01:08
|
 |
|
Re: sysinfo gets error
By: Tom1 on Thu, 08 December 2011 12:18
|
 |
|
Re: sysinfo gets error
By: koldo on Thu, 08 December 2011 18:49
|
 |
|
Re: sysinfo gets error
By: Tom1 on Thu, 08 December 2011 20:24
|
 |
|
Re: sysinfo gets error
By: koldo on Thu, 08 December 2011 20:47
|
 |
|
Re: sysinfo gets error
|
 |
|
Re: sysinfo gets error
By: peek on Fri, 09 December 2011 14:53
|
Goto Forum:
Current Time: Tue Apr 29 23:21:35 CEST 2025
Total time taken to generate the page: 0.01086 seconds
|