Unresolved external when linking of wxWidget applications

Hi everyone,
I have a problem linking a wxWidget application with the sunstudio tools. Everything regarding wxWidget will throw linking errors although all libraries have been added to the linker options in the linking stage. If I switch to the GNU CPP environment everything compiles fine.
Help is greatly appreciated!
Thanks in advance!!!
Cheers,
Here is my linking output from sunstudio
hal9000 --> Job output
mkdir -p dist/Debug/Sun12-Linux-x86
CC -o dist/Debug/Sun12-Linux-x86/wxwidgets build/Debug/Sun12-Linux-x86/myApp.o -lpthread -ldl -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8
(/home/zak/SunStudioProjects/wxWidgets)build/Debug/Sun12-Linux-x86/myApp.o:
:(/home/zak/SunStudioProjects/wxWidgets)build/Debug/Sun12-Linux-x86/myApp.o
build/Debug/Sun12-Linux-x86/myApp.o: In function `MyFrame':/home/zak/SunStudioProjects/wxWidgets//myApp.cc:32: undefined reference to `wxFrame::~wxFrame #Nvariant 1()'
build/Debug/Sun12-Linux-x86/myApp.o: In function `wxCreateApp':/home/zak/SunStudioProjects/wxWidgets//myApp.cc:75: undefined reference to `bool wxAppConsole::CheckBuildOptions(const char*,const char*)'
build/Debug/Sun12-Linux-x86/myApp.o: In function `main':/home/zak/SunStudioProjects/wxWidgets//myApp.cc:75: undefined reference to `int wxEntry(int&,char**)'
...

gmake has syntax extensions that dmake doesn't understand., You can try the makefile and see what happens. (Not all gmake makefiles use the extensions.)
But you can use gmake with Sun Studio. You need only adjust the macros to use Sun Studio compilers and options. If you are more comfortable with gmake than with dmake, there is no need to switch.

Similar Messages

  • External URL Link Into HTMLDB Application

    Hi,
    I have a non htmldb application that I want to link into my htmldb application via a url so I can run a report, in order to run this report I need to feed in some variables
    This link i am using is
    http://dev.oraclecorp.com/pls/aitmarvel/f?p=100:8:::::P8_REFRESH_HEADER_ID,P8_SR_NUMBER,P8_TARGET:82,3526357,ADMAT
    The variables being
    P8_REFRESH_HEADER_ID,P8_SR_NUMBER,P8_TARGET
    in this case I want populated with
    82,3526357,ADMAT
    It goes through single sign on OK and then displays the correct page but the variables have been stripped off.
    Any ideas??
    Thanks ANDY

    Hi,
    are there any ideas out there to this question?
    I am having exactly the same problem.
    What I additionally noticed is that when you hit the link
    for a second time, the parameters are passed fine.
    It seems to work only when a htmldb session already exists for the application.
    I am using "HTML DB as Partner Application".
    I have a feeling this problem is more related to the
    Single Sign On server...
    Thx, Michael

  • Unresolved external symbols when linking C++ with ni.4882.obj

    Moving from 32-bit XP to Windows 7 using Microsoft Visual Studio 2008 C++.  When linking with NI-488.2 version 3.0.2 I (ni4882.obj) get the following warning and errors:
    1>Linking...
    1>ni4882.obj : warning LNK4217: locally defined symbol _time64 imported in function time
    1>ni4882.obj : error LNK2019: unresolved external symbol __imp_rand referenced in function LoadFunction
    1>ni4882.obj : error LNK2019: unresolved external symbol __imp_srand referenced in function LoadFunction
    1>ATP.exe : fatal error LNK1120: 2 unresolved externals
    1>Creating browse information file...
    1>Microsoft Browse Information Maintenance Utility Version 9.00.21022
    1>Copyright (C) Microsoft Corporation. All rights reserved.
    Any ideas.
    Solved!
    Go to Solution.

    Hi Guys,
    I got this error too recently. Was troubling me a lot. I was using Windows 7 OS, Visual Studio 2010 compiler.
    The fix for this is pretty much straight forward and solution lies in the Project settings only.
    To my knowledge, with /MDd switch, it causes the compiler to place the library name MSVCRTD.lib into the .obj file.
    But with /MTd switch, This option just causes the compiler to place the library name LIBCMTD.lib into the .obj file so that the linker will use LIBCMTD.lib to resolve external symbols. For details, please refer to this MSDN article:
    https://msdn.microsoft.com/en-us/library/2kzt1wy3(VS.71).aspx
    Its very useful.
    Also
    MDd stands for Multi-threaded Debug DLL
    MTd stands for Multi-threaded Debug
    Thanks,
    Kiran

  • I'm getting this "error LNK2001: unresolved external symbol _niFgen_SendSoftwareTrigger@4" when I try to make any CNiFgen object.

    Hi, I have a working project that has a few classes using the NI5411 APIs and now I want to use CNiFgen classes. After adding Core Components(Advanced Analysis, Common) and NI Device Instrument Drivers(NiFgen) from the Measurement Studio Components Wizard. Even when I try to make an object of CNiFgen(CNiFgen cnf I get the following error:
    --------------------Configuration: puzzle - Win32 Debug--------------------
    Linking...
    NiFgenInterfaceD.lib(NiFgenImpl.obj) : error LNK2001: unresolved external symbol _niFgen_SendSoftwareTrigger@4
    Output/puzzle.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.
    puzzle.exe
    - 2 error(s), 0 warning(s)
    My APIs version is working fine and so are these CNiFgen classes(I have tried then for a dummy project). But, things start getting nasty when I try to integrate them.
    Regards,
    Vaibhav.

    It looks like you have a typical linking error in VC++. Have you made sure that all of the necessary .lib files are properly linked to?
    Also, are you passing any data between your custom classes and the niFGEN classes? These will take different data types unless you have already type cast all of them to work properly together. If they don't share variables, you should be okay.
    Jack Arnold
    Application Engineer
    National Instruments

  • FF windows goes blank white and freezes if I click a link in another application when Print Preview is open in FF (Win 7 64-bit)

    Possible bug: FF dumps my session if I try to open an external link without closing print preview view. I had left the Print Preview screen open in FF after printing a web page, and I clicked a web link in another application, which would have normally opened in a new tab in FF. However, only the Print Preview window was displayed and when I clicked "Close", the FF window when all white. Back/backspace wouldn't work and I had to close FF and start a new session. I tested this a few times and it happens every time. I didn't think to test whether this happens in Safe Mode.

    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Check and tell if its working.

  • Unresolved external symbols when building release version of DLL

    I have C code which I use to build a DLL project.  I have used the same code to create this DLL project in several different solutions.
    I am trying to build it in a new solution, and can build the debug version, but I receive a bunch of unresolved external errors when I try to build the release version.
    I have painstakingly compared the project release properties with the debug properties, and with the release properties of the same project when I have included it in other solutions.  I can't find the problem.
    Here are a few of the errors:
    1>OLDNAMES.lib(access.obj) : error LNK2001: unresolved external symbol _access
    1>Cbase_filedir.obj : error LNK2001: unresolved external symbol __imp__strchr
    1>Cusage.lib(CusageWebLog.obj) : error LNK2001: unresolved external symbol __imp__strchr
    1>Cbase_filedir.obj : error LNK2001: unresolved external symbol __imp__fopen
    Any Suggestions?
    Mike

    Hi Mike,
    Thanks for posting in MSDN forum.
    1.Please check project properties->Linker->Additional dependencies has the same libs in both debug and release version. Maybe the lib you added in bebug version but not working in release version.
    2.Double check there is no code in something like that #ifdebug  ... #endif
    3.please use the same character set in your dll or the referenced lib. Both are unicode character set or multi-Bity.
    4.Please use the same Runtime library in your dll or the referenced lib. Both are C\C++->code generation->runtime library ->/MD or /MT
    Above are some general scenarios, hope this helps some.
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • OCCI Link problem (Error LNK2019: unresolved external symbol) in VS2012

    Hi,
    I'm having a hard time with this. I'm trying to implement OCCI within my application. Error I'm getting is:
    Error     1     error LNK2019: unresolved external symbol "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum oracle::occi::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@SAPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0W4Mode@123@PAXP6APAX2I@ZP6APAX22I@ZP6AX22@Z@Z) referenced in function "private: bool __thiscall ServerDataLoader::getPreSuffixesFromDB(void)" (?getPreSuffixesFromDB@ServerDataLoader@@AAE_NXZ)     P:\code\VizTool\VizPortal\DwgDgnConverter\ServerDataLoader.obj     DwgDgnConverter
    Error     2     error LNK1120: 1 unresolved externals     P:\code\VizTool\VizPortal\Debug\DwgDgnConverter.exe     1     1     DwgDgnConverter
    Yes, it looks like linking problem,...but for me everything seems set-up.
    - Included header files (from instantclient-sdk-windows.x64-11.2.0.3.0.zip)
    - Included library path from OCCI download (11.2.0.3.0)
    - Added oraocci11d.lib in linker
    Please, what am I doing wrong?
    Millions of thanks for any kind of feedback ;-)

    Have you succeeded? I tried vs2012 and it passed compilation, but gave the run-time error of _crtisvalidheappointer. But the same code runs well with vs2010. I think Oracle needs to publish the new patch for vs2012                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • [Linker Error] Unresolved external 'niScope_init' referenced from C:\ALUNOS\ALLAN\EVA\BUILDER2.0B\UNIT1.OBJ

    Hi,
    First of all I'm sorry about my English. I'm developing a software on Builder C++ by Borland and we bought an NI DAQ 5112 PCI. I'd like to know if is possible to use the high-level functions from niScope (such as niScope_init, _AutoSetup, _close...) on this plataform. I'm asking it 'cause I could run every "example program" on it whithout any problem. But when I try to use it on my own project the message below is shown: unresolved external "niScope_init" referenced from "path_of_my_project".
    thanks,
    Allan

    Make sure you're linking to the niScope inport library.  I'm attaching the Borland import library from NI-SCOPE 2.9.1.
    (These forums won't let me attach a .lib.  So download this file, and rename it "niScope.lib")
    Attachments:
    niScope.txt ‏72 KB

  • Unresolved external symbol NumericArrayResize when compiling a DLL at x64 platform using vs2005

    I have a dll which is called by Labview through "Call Library Function Node". I want to port this dll to x64 platform from 32bit code which runs well at x86 computer. So, I download the Labview 8.5 evaluation version, replace the orginal referenced header file and library file in 32 bit code, such as extcode.h, fundtypes.h, labview.lib etc. Then I compile the code with Visual Studio 2005, error occurs when link "error LNK2001: unresolved external symbol NumericArrayResize". I don't know why because I really link library labview.lib. Can anyone help me?

    Please check the solution in this thread, this may help you solve your problem.
    http://stackoverflow.com/questions/925540/how-to-resolve-the-following-linker-errors-in-visual-studio
    If you still get the same problem after try the solution, please feel free and let me know.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • When I click on an active link from another application, it opens the firefox application, but won't open open the page - it just opens Firefox or takes me to Firefox. No new tab or window is opened and the link is not displayed.

    When I click on an active link from another application, it opens the firefox application, but won't open open the page - it just opens Firefox or takes me to Firefox. No new tab or window is opened and the link is not displayed.

    Firefox sent an email to me to confirm that I had asked the above question. The email had a link to click. When I clicked it from Firefox, nothing happened. Then I opened IE, signed into Comcast, opened the email, clicked the link, and it brought me here.

  • Linker "unresolved external" error

      I have a large project written in straight C that Visual Studio 2013 (with a little forcing) compiles and runs without error.  I have written a C++ shell around it to create a new project.  Everything works except that I get
    the “unresolved external” error for every instance of my C-style declarations, i.e., where I declare a variable directly with first use, and forever thereafter declare it with the “extern” keyword. How (exactly) can I fix this?  

      I found the “unresolved external” problem.  What happens is that VS will not “port” an initial declaration in a .cpp file into a set of .c files (and vice versa) so when it hits my “extern” declarations in the set of .c files which I assumed
    would be associated with the initial declarations in the set of .cpp files in my .cpp shell, It thinks none of them has a legitimate initial antecedent.  Since I need only two .cpp files in the shell, this was easily fixed.  However, the project
    still won’t compile because I have apparently not set up my header files properly.  This results in hundreds of errors like the following, where VS attacks and rejects its own MS code:  “IntelliSense: declaration is incompatible with "double
    __cdecl acos(double _X)" (declared at line 474 of "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\math.h") c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\cmath.” I might eventually be able to “fiddle” my way to
    a solution, but any help would certainly be appreciated.

  • Windows error when running link for other application

    When FF is not running and I click on a link in another application there is a error reported but FF loads and goes to the link. Example Outlook email link results in a Windows General failure error message.
    Run Windows 7 sp1

    Are you trying to run the app from a Command Prompt or fro Text Pad?
    The error occurs when java can not find the class you tried to run. It is very likely a Classpath problem. It may work from the Command Prompt from the directory where the NumberConvert.class is located, enter "java -classpath . NumberConvert"

  • Linker error: error LNK2001: unresolved external symbol __imp_printf

    On a newly installed compiler, Visual Studio 2013, I get some linker error:
    Sample program (for test):
    #include <stdio.h>
    int main ()
    printf("Help");
    return 0;
    I get some linker errors:
    Error 2 error LNK2001: unresolved external symbol __imp_printf F:\ug_info\indices\Project1\Project1\Source.obj Project1
    Error 1 error LNK2001: unresolved external symbol __security_check_cookie F:\ug_info\indices\Project1\Project1\Source.obj Project1
    Error 3 error LNK2001: unresolved external symbol mainCRTStartup F:\ug_info\indices\Project1\Project1\LINK Project1
    I thinks there is a configuration issue..
    Any suggestions?

    Hi Camiel.Rys,
    Thanks for posting in MSDN forum.
    Error 3 error LNK2001: unresolved external symbol mainCRTStartup F:\ug_info\indices\Project1\Project1\LINK Project1
    I would guess that you may create a wrong project template. Could you try to create a new Win32 Console project following this document?
    Walkthrough: Creating a Win32 Console Program (C++)
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • When I click on links in other applications (email is one) Firefox does not open it.

    If I click on a link in another application, such as one to the application's help service or a link in an email, it looks as if Firefox is trying to open a page or tab, but there is just a brief flash and nothing appears. This is a fairly recent phenomenon.

    closed firefox, then did yum reinstall firefox
    didn't help, same problem

  • C++ Kinect SDK: error LNK2019 unresolved external symbol

    I'm receiving the message "error: LNK2019" error when I attempt to run a basic C++ Kinect program.  I am running Windows 7 32bit with the Kinect SDK 1.0 and developing in Visual Studio 2010.  The included Skeletal Viewer sample works correctly,
    so I believe my problem lies in the project configuration.  I tried comparing my project config to the sample's, but I can't find any differences so I thought I'd open this up to the forums.  Is there any missing or incorrect information that I'm
    not seeing?  Or is there some other configuration I should be checking?
    Thank you in advance.
    #include "stdafx.h"
    #include <iostream>
    #include <windows.h>
    #include <NuiApi.h>
    #include <stdio.h>
    -- Include Directories: --
    $(VCInstallDir)include;
    $(VCInstallDir)atlmfc\include;
    $(WindowsSdkDir)include;
    $(FrameworkSDKDir)\include;
    $(KINECTSDK10_DIR)\inc;
    -- Library Directories --
    $(VCInstallDir)lib;
    $(VCInstallDir)atlmfc\lib;
    $(WindowsSdkDir)lib;
    $(FrameworkSDKDir)\lib;
    $(KINECTSDK10_DIR)\lib\x86;
     These are the specific errors I'm getting:
    1>kinectruntime.obj : error LNK2019: unresolved external symbol __imp__NuiImageStreamGetNextFrame@12 referenced in function _main
    1>kinectruntime.obj : error LNK2019: unresolved external symbol __imp__NuiImageStreamOpen@24 referenced in function _main
    1>kinectruntime.obj : error LNK2019: unresolved external symbol __imp__NuiInitialize@4 referenced in function _main

    Is kinect10.lib listed among the libraries in your project's properties, under Linker | Input | Additional Dependencies?
    If not, that is the likely cause for the errors.
    John
    K4W Dev
    That was it!  Thank you for the quick response and the clear directions.
    Since I see you're with Microsoft, I'd like to point out this step was missing from the set up instructions that come with the SDK installation.  This guide says to link kinect10.lib by linking
    $(KINECTSDK10_DIR)\lib\x86;  As we saw here, that's not quite the same thing!
    Programming Guide > Using Visual Studio > To Create an Unmanaged Application > Step #5

Maybe you are looking for

  • How can i get to my files?

    i have a casio vado pocket cam that was given to me as a gift last year. i used it some and have presiose videos on it and hooked it up to me computer and it had asked me if i wanted to sync the files to my computer which i said yes without knowing w

  • Rotating photos in Photo

    I frequently take screen shots while in Google Maps for use in navigation. The problem is the screenshots invariably mount the wrong way in Photo, I.e. In portrait mode instead of landscape. That's one bug. Second, Some photos (those imported from my

  • Mapping field doubt

    Hi I am doing a Proxy to File scenario. My mapping sheet is like this. Only output this record if MARA.A is not blank. Then I have four fields, of which one is MARA.A Again it's like this. Only output this record if MARA.B is not blank. Then under th

  • ITunes 11.1.5 crashes often

    Hello all, I'm running iTunes 11.1.5 on Mac OS 10.9.2. iTunes has been crashing about every hour. I tried deleting the iBooks app, but iTunes continued to crash. I've also tried creating a new library, but this didn't help either. I'm getting tired o

  • Illustrator CS6 gets error when opening AI files - Mavericks 10.9

    I installed Mavericks yesterday ... lucky me, to be guinea pig in the office for this upgrade. Am having issues with Illustrator. First it wouldn't open and had to runt he Java install, that took care of that. I am able to make new files without prob