Problems compiling Storyboard demo source code

If you are trying to build a Storyboard demo's source code (ThermostatIO for example) and you are on version 7.1 then you will likely encounter errors. 

For example if you're using Visual Studio to build, the error message may look something like: 

1>------ Build started: Project: ThermostatIO, Configuration: Debug Win32 ------
1>thermostat_backend.c
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libgreio.lib(greio_multi.c.obj) : error LNK2019: unresolved external symbol _dlopen referenced in function _greio_load_transports
1>libgreio.lib(greio_multi.c.obj) : error LNK2019: unresolved external symbol _dlsym referenced in function _greio_load_transports
1>C:\Users\Name\Workspace\ThermostatIO\source_code\Debug\ThermostatIO.exe : fatal error LNK1120: 2 unresolved externals
1>Done building project "ThermostatIO.vcxproj" -- FAILED.

 

If you are encountering problems compiling the source code, please contact Support at support@cranksoftware.com and you will be assisted further.

 

0

Comments

9 comments
  • Official comment

    Hi Jose,

    This is related to a lib issue. Please reach out to support@cranksoftware.com and we'll either provide you with an update lib or a link to Storyboard 7.2.

    Thanks,

    -Jamie

  • i have the same problem.

    0
  • Hi Jose,

    what Storyboard version are you using?
    I just checked the Solution that we packed in 8.1 and it is working properly, you just need to check that you have the correct paths on the configuration.

    br,
    Max

    1
  • With version 7.0 I had no problems, but after I updated to 7.1 I got those errors in Visual Studio. update all PATHs, for the new version.

    0
  • hm, which compiler are you using?
    be sure to be using x64 native, do not use x86
    I recall trying this on the command line with the x64 Native Tools Command Prompt for VS 2022 and worked 

    let me know if that resolves the issue,

    Max

    0
  • Jose, if you don't get it running in Visual Studio, you could alternately try:

    1.open x64 Native Tools Command Prompt for VS 2022
    2.cd to the working directory
    3.Fix the path to your configuration, and run this line:
    set SB_ROOT="C:\Program Files\Crank_Software_8_0\Storyboard_Engine\8.0-stable.202304090148\windows-x86_64-opengles_2.0-obj"

    4. Fix the path to your configuration, and run this line:
    cl /DWIN32 /MD /I%SB_ROOT%/include "C:\Users\mzapata\storyboard_workspace_8_0\Cluster_IO2003\source\C-Compiler\BackendCode.c" libgreio.lib legacy_stdio_definitions.lib /link /LIBPATH:%SB_ROOT%/lib

    this should produce an exe file.

    another alternative, would be to upgrade to sb8.1, I just checked the Visual Studio solution and works properly there

    br,
    Max

    0
  • I still have the same problem with LNK2019.

    0
  • Upgrading to version 8.1 is more expensive for me. I'll soon be buying version 7.

    0
  • Hi Jose,

    It seems that there is a bug affecting that sb version, that I did not know about. apologies for that.
    The issue is that there are a couple of missing function definitions, however the greal.lib contains these definitions.
    Storyboard does not ship with greal.lib by default, but we can send it to you in the support channel
    All you have to do then is to link against it in Visual Studio.

    please contact us there in the support channel and I will send the files
    thank you
    Max

     

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post