U++ framework
Do not panic. Ask here before giving up.

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 Go to previous messageGo to previous message
silverx is currently offline  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@@00AAH0>@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)
 
Read Message icon8.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon3.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SysInfo package
Next Topic: CtrlBinder as an alternative for CtrlRetriever
Goto Forum:
  


Current Time: Thu Sep 10 16:55:58 GMT+2 2026

Total time taken to generate the page: 0.00919 seconds