Git Product home page Git Product logo

Comments (10)

wb2osz avatar wb2osz commented on May 28, 2024 1

Try this:

Edit external/regex/regex.h

Change from: REGEX_VARIABLE_IMPEXP reg_syntax_t re_syntax_options;

Change to: extern reg_syntax_t re_syntax_options;

Let me know how it goes.

73,
john WB2OSZ

from direwolf.

dranch avatar dranch commented on May 28, 2024

You haven't provided enough information to confirm/deny this is a bug:

from direwolf.

iontodirel avatar iontodirel commented on May 28, 2024

I apologize, I will provide them briefly.

EDIT:

Windows details (Windows version and if it's 32 or 64bit): Windows 11 21H2, 22000.1817, 64-bit
What version of Cygwin mingw? 32 or 64bit? 3.4.6, 64-bit
What version of direwolf are you trying to compile? 64-bit direwolf
Did you install all the dependencies and environment variables for Windows compiling per https://github.com/wb2osz/direwolf/blob/dev/doc/User-Guide.pdf yes, there are no failures due to missing dependencies

from direwolf.

dranch avatar dranch commented on May 28, 2024

Are you trying to compile Direwolf 1.6 (master GIT branch) or Direwolf 1.7G (DEV Git branch)?

from direwolf.

wb2osz avatar wb2osz commented on May 28, 2024

This clearly has something to do with the regular expression (regex) library.
On Linux, direwolf uses the version of regex supplied by the operating system.
A copy of regex is included for use on Windows where it does not exist.
The error message mentions duplicate definition of something from the regex library
I have Windows 10 here, and the versions of cygwin and mingw are not up to date.

This seems to be the culprit: REGEX_VARIABLE_IMPEXP reg_syntax_t re_syntax_options;
Maybe something about multiple definitions of the same external variable has changed.

from direwolf.

iontodirel avatar iontodirel commented on May 28, 2024

I will try that tomorrow, thank you. And that seems like the right fix.

from direwolf.

wb2osz avatar wb2osz commented on May 28, 2024

Any results?

from direwolf.

iontodirel avatar iontodirel commented on May 28, 2024

Hi @wb2osz, that worked! And tested that Direwolf works.

@wb2osz, one other question, I assume that MSVC is not supported anymore? I see references to it in the CMake build scripts, but the C code itself is written in a way that would not compile with MSVC.

from direwolf.

wb2osz avatar wb2osz commented on May 28, 2024

I'm glad to hear that you were able to build it OK.

The cmake scripts were provided by someone else and they have extra stuff, from other projects, in there that we really don't need.
I've only tried using gnu and clang compilers to make portability easier.
I have no idea how much effort would be needed to make direwolf build with MSVC.
It probably wouldn't be too horrible because it is using the windows header files and C runtime API.
Compiler options would definitely need to be changed.

from direwolf.

wb2osz avatar wb2osz commented on May 28, 2024

Issue resolved. No discussion for many months.

from direwolf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.