{"id":20665263,"url":"https://github.com/szcf-weiya/gslwin","last_synced_at":"2026-04-07T05:31:51.727Z","repository":{"id":111915309,"uuid":"97445147","full_name":"szcf-weiya/GSLwin","owner":"szcf-weiya","description":"GSL for windows.","archived":false,"fork":false,"pushed_at":"2017-10-18T13:55:08.000Z","size":4246,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T03:44:04.515Z","etag":null,"topics":["gsl","mingw","windows"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/szcf-weiya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-17T07:01:21.000Z","updated_at":"2024-09-20T19:56:13.000Z","dependencies_parsed_at":"2023-04-11T01:16:31.060Z","dependency_job_id":null,"html_url":"https://github.com/szcf-weiya/GSLwin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/szcf-weiya/GSLwin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szcf-weiya%2FGSLwin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szcf-weiya%2FGSLwin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szcf-weiya%2FGSLwin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szcf-weiya%2FGSLwin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szcf-weiya","download_url":"https://codeload.github.com/szcf-weiya/GSLwin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szcf-weiya%2FGSLwin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31501903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gsl","mingw","windows"],"created_at":"2024-11-16T19:29:28.303Z","updated_at":"2026-04-07T05:31:51.690Z","avatar_url":"https://github.com/szcf-weiya.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GSLwin\nGSL for windows.\n\n## Update on 2017.09.08\n\nActually, we can compile lib and include for x64. Msys and mingw are two essential compenents. But this time I installed msys and mingw respectively, while I have installed the complex suite, which just for i386.\n\n1. Download [MSYS-20111123.zip](https://phoenixnap.dl.sourceforge.net/project/mingw-w64/External%20binary%20packages%20%28Win64%20hosted%29/MSYS%20%2832-bit%29/MSYS-20111123.zip)\n and unzip.\n2. Visit the website of [mingw_w64](http://mingw-w64.org/doku.php/download), and click Mingw-builds, you would download the mingw-w64-install.exe from sourceforge. Then you just run this file and install.\n3. Note that we just install two seperate program, so we need to \"connect\" them. Open `msys.bat` and `mingw-w64.bat`, both locate in their respective installation directory. Copy the content in `mingw-w64.bat` and paste in the head of `msys.bat`. Then run `msys.bat`, you can use g++ and gcc, which belongs to mingw.\n4. Now we can compile gsl. Download [gsl](ftp://ftp.gnu.org/gnu/gsl/) to the file folder of MSYS.\n5. In the unix-like terminal, type\n```\ntar xzvf gsl-2.4.tar.gz\ncd gsl-2.4\n./configure\nmake\nmake install\n```\nWhen I run ./configure, there is a warning, \"WARNING: cache variable lt_cv_path_LD contains a newline\". As a result, I fail to run `make`. There is a solution [libtool](http://lists.gnu.org/archive/html/libtool/2009-05/msg00034.html). However, after I fix this bug, one more bug about libtool. And there are also [mail lists](https://lists.gnu.org/archive/html/libtool/2014-09/msg00005.html) talking about. But I failed to find a solution. I guess these bugs might be incompatible program. Because I choose the latest version when I install mingw_w64, while msys or gsl might not be updated. Then I adopt the mingw32 and mingw64 in Rtools. It need more time to test.\n\n\n\n****\n\n## Steps\n\n1. Download [MinGW](http://www.mingw.org) and install.\n2. In MinGW Installation Manager, choose all packages in basic setup and install.\n3. In cmd, type 'msys.bat MSYS' to open a unix-like terminal.\n4. Download [gsl](ftp://ftp.gnu.org/gnu/gsl/) to the file folder of MSYS.\n5. In the unix-like terminal, type\n\n```\ncd gsl-2.4/\n./configure\nmake\nmake install\n```\n6. The lib is in 'local/lib', and the include is in 'local/include'\n7. Now, you can use gsl on windows.\n```\ng++ test.c -o out I\"path/to/include\" -L\"path/to/lib\" -lgsl -lgslcblas -lm\n```\n\n**NOTE: The include and lib in this repository are just for i386.**\n\n## Setup Dev-C++\n\n1. Choose Tools\u003eCompiler Options, select one 32-bit compiler to configure, say `TDM-GCC 4.8.1 32-bit Release`. DO NOT use 64-bit!\n\n1. Choose Tools\u003eCompiler Options\u003eDirectories, then add the include and libraries path for gsl.\n\n2. Choose Tools\u003eCompiler Options\u003eGeneral, add the following commands when calling the linker\n```\n-lgsl -lgslcblas -lm\n```\n\n3. Compile and build a C/C++ program, say [lm.cpp](https://github.com/szcf-weiya/gsl_lm)\n\nThe results are as follows:\n\n![](result.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszcf-weiya%2Fgslwin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszcf-weiya%2Fgslwin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszcf-weiya%2Fgslwin/lists"}