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
gcc -c -Wall -Werror -fPIC lib.c | |
gcc -shared -o lib.dll lib.o |
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
# Environment: PowerShell 7 | |
# Install: put runfile.ps1 in project directory | |
# create subdirectory lib | |
# download and put the algs4.jar in lib subdirectory | |
# Usage: | |
# it will auto detect args or file as input | |
# .\runfile.ps1 HelloWorld.java <- no argument or input | |
# .\runfile.ps1 HelloGoodbye.java aa bb <- passing args aa and bb | |
# .\runfile.ps1 RandomWord.java <- interactive run (read from stdin) |
NewerOlder