DX Unified Infrastructure Management

  • 1.  C SDK - Header errors on build

    Posted Apr 25, 2017 09:13 AM

    Hi,

     

    When i tried to build my CPP program by including Nimsoft .h file i have multiple build errors.

     

     

    I dont know if i missed something ( no starter guide around C SDK ... ). Maybe i have to use a specific compiler or something like that ?

     

    Best Regards,

    Thomas



  • 2.  Re: C SDK - Header errors on build

    Broadcom Employee
    Posted Jun 06, 2017 08:22 PM

    Thomas -

     

    Did you setup your environment per the C SDK README file?


    README file for the NimBUS C language SDK

     

    To build probes using the NimBUS C SDK you MUST have the NIMROOT Environment
    variable set. This is the top node of the SDK package (usually this will be
    C:\PROGRA~1\NimBUS\sdk for C:\Program Files). In addition it is usually a good
    idea to have the SDK's bin directory in the PATH.

     

    An example batch file called nimenv.bat is included. This batch file can be
    modified in any text editor if the paths used on your system are different
    from those set. To avoid forgetting to run this batch file it is recomended
    that you add the NIMROOT variable to your environment, and add the SDK's bin
    directory to your PATH.

     

    Tip: Many programs have problems with spaces in directory names. To find the
    short name (8.3 representation) of any file or directory you can use the '/x'
    modifier to dir:
    c:\> dir /x
    The short name will be in the fifth column. Program files is usually PROGRA~1.

     

    On the Windows platform you can use the CodeWizard to generate a skeleton
    program with example code for most NimBUS operations. The CodeWizard generates
    a bmake.file which bmake.exe expands to a makefile suitable for compilation
    with Visual C.

     

    The errors you reported that you are getting when attempting to build your CPP program seem to indicate some kind of build environment issue.

     

    Finally, you should review the C SDK section of the CA UIM Development Tools Wiki page.  There is a link to the C SDK Reference Guide PDF file with some additional information.

     

    I hope this helps.

     

    Thanks,

    Kathy Maguire



  • 3.  Re: C SDK - Header errors on build

    Posted Jun 08, 2017 07:30 AM

    Hi,

     

    Yes i already seen this by looking at the documentation in the Nimsoft root directory. I have to test that and maybe rebuild a complete step to step guide.

     

    There is no real documentation about how to build a C Probe. For headers i created a GIT repository with updated headers.

    GitHub - UIM-Community/C-Headers: CA UIM - C SDK Updated headers 

     

    For example the PDS header is wrong (Some dependencies are missing). Some type are not ok etc.. 

     

    I will continue my work soon with my new computer.

     

    Best Regards,

    Thomas



  • 4.  Re: C SDK - Header errors on build

    Broadcom Employee
    Posted Jun 08, 2017 06:40 PM

    Thomas -

     

    Perhaps there are some pointers available in the Setting up Visual Studio and C SDK discussion that might help you out?

     

    Thanks,

    Kathy Maguire



  • 5.  Re: C SDK - Header errors on build

    Posted Jun 09, 2017 03:30 AM

    Hi,

     

    Thanks very useful topic ! A lot of good information.

     

    Best Regards,

    Thomas