Skip to content

opengrn will not build as a dynamic/shared library  #5

@matty45

Description

@matty45

For some reason, opengrn refuses to build with visual studio 2022 when "OPENGRN_STATIC" is false

1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Release x64 ------
1>Checking Build System
2>------ Rebuild All started: Project: opengrn, Configuration: Release x64 ------
2>Building Custom Rule F:/Documents/GithubProjects/opengr2/libopengrn/CMakeLists.txt
2>compression.c
2>darray.c
2>debug.c
2>elements.c
2>F:\Documents\GithubProjects\opengr2\libopengrn\gr2.h(84,35): error C2059: syntax error: 'type'
2>F:\Documents\GithubProjects\opengr2\libopengrn\elements.c(56,16): error C2375: 'Element_Free': redefinition; different linkage
2>F:\Documents\GithubProjects\opengr2\libopengrn\elements.h(128): message : see declaration of 'Element_Free'
2>elements_parse.c
2>F:\Documents\GithubProjects\opengr2\libopengrn\gr2.h(84,35): error C2059: syntax error: 'type'
2>gr2.c
2>F:\Documents\GithubProjects\opengr2\libopengrn\gr2.h(84,35): error C2059: syntax error: 'type'
2>F:\Documents\GithubProjects\opengr2\libopengrn\gr2.c(100,28): error C2059: syntax error: 'type'
2>gr2_read.c
2>F:\Documents\GithubProjects\opengr2\libopengrn\gr2.h(84,35): error C2059: syntax error: 'type'
2>gr2_write.c
2>F:\Documents\GithubProjects\opengr2\libopengrn\gr2.h(84,35): error C2059: syntax error: 'type'
2>platform.c
2>magic.c
2>oodle1.c
2>virtual_ptr.c
2>F:\Documents\GithubProjects\opengr2\libopengrn\gr2.h(84,35): error C2059: syntax error: 'type'
2>crc.c
2>typeinfo.c
2>F:\Documents\GithubProjects\opengr2\libopengrn\gr2.h(84,35): error C2059: syntax error: 'type'
2>Generating Code...
2>Done building project "opengrn.vcxproj" -- FAILED.
3>------ Rebuild All started: Project: gr2nfo, Configuration: Release x64 ------
3>Building Custom Rule F:/Documents/GithubProjects/opengr2/gr2nfo/CMakeLists.txt
3>gr2nfo.c
3>F:\Documents\GithubProjects\opengr2\gr2nfo\../libopengrn/gr2.h(84,35): error C2059: syntax error: 'type'
3>Done building project "gr2nfo.vcxproj" -- FAILED.
4>------ Skipped Rebuild All: Project: ALL_BUILD, Configuration: Release x64 ------
4>Project not selected to build for this solution configuration 
========== Rebuild All: 1 succeeded, 2 failed, 1 skipped ==========
========== Elapsed 00:02.693 ==========

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions