Jump to content

I Can't compile my first Unigui C++ application


lcolombo

Recommended Posts

I installed unigui in RadStudio 2007 following the web site's instructions. I create an empty unigui application in Delphi 2007, I pressed the F9 key and it worked correctly. Then I create an empty unigui application in C ++ Builder 2007, I press the F9 key and it throws me the following error:

 

[iLINK32 Error] Error: Unresolved external '__fastcall Uniguiregclasses::CPPInit()' referenced from C:\USERS\LUCAS\DOCUMENTS\RAD STUDIO\PROJECTS\PROJECT1\DEBUG\MAIN.OBJ

 

 

Any idea ?

Link to comment
Share on other sites

uniGUI.pdf:
After starting a new C++ project you must disable Linker->Dynamic RTL.
Currently building with Run Time Packages doesn't work properly. You must statically link all
libs and create a single EXE. (Simply unselect Build with runtime packages option.)

  • Upvote 1
Link to comment
Share on other sites

  • 4 months later...

in the main cpp file (the one with the name of the project)

 


#include <UniGUIVars.hpp>//<---------THIS
#include <vcl.h>

USEFORM("MainModule.cpp", UniMainModule); /* TUniGUIMainModule: File Type */
USEFORM("ServerModule.cpp", UniServerModule); /* TUniGUIServerModule: File Type */
USEFORM("Main.cpp", MainForm); /* TUniForm: File Type */
//---------------------------------------------------------------------------
#pragma link "UniGUIVars.obj" //<---------THIS
#pragma TestProject

//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
Link to comment
Share on other sites

  • 1 month later...

Hi,

 

I am having a similar problem in that I cannot compile a blank C++ unigui app. I am getting a multitude of errors but it seems to stem from the fact that the .hpp files uniGUIMainModule.hpp, uniGUIServer.hpp and uniGUIForm.hpp cannot be located, it seems to stem from uniGUIVars.hpp.

 

I am using the latest trial version 1.0.0.1417 for RAD Studio Berlin 10.1

Link to comment
Share on other sites

  • Administrators

Hi,

 

I am having a similar problem in that I cannot compile a blank C++ unigui app. I am getting a multitude of errors but it seems to stem from the fact that the .hpp files uniGUIMainModule.hpp, uniGUIServer.hpp and uniGUIForm.hpp cannot be located, it seems to stem from uniGUIVars.hpp.

 

I am using the latest trial version 1.0.0.1417 for RAD Studio Berlin 10.1

 

You must make sure you have built all uniGUI packages with C++ export options turned ON.

Please see installation instructions.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...