Open
Conversation
-export fuctions DLLEXPORT and RL_JSON_EXTERN that become DLLEXPORT, DLLIMPORT, empty ... as needed, MODULE_SCOPE -> extern
-avoid C++ keywords as variable names: new -> new_obj, template -> template_obj, bool -> bool_obj
-castings: structs, (Tcl_Obj*), ckalloc
-define sowehow missing Windows functions: #define snprintf _snprintf , #define unlink _unlink, .. mkstemp and fdopen -> _mkstemp
-C90 unsupported intialization struct parse_error details = {};
-unsigned long addr -> Tcl_WideInt addr and Tcl_GetLongFromObj -> Tcl_GetWideIntFromObj
…nux dlls/.so with different names
Author
|
I have been able to compile the package rl_json in Windows (x63 and x32) with Visual Studio 2022 (but other VS versions are also valid) I wanted to share this effort, to avoid be repeated for other users that want your package compiled for Windows |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.