Skip to content

Instantly share code, notes, and snippets.

@lithiumhead
Last active September 4, 2017 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lithiumhead/0f1129c312d7cf05540f9b1d76aa8b75 to your computer and use it in GitHub Desktop.
Save lithiumhead/0f1129c312d7cf05540f9b1d76aa8b75 to your computer and use it in GitHub Desktop.
Hello World - C Shared Library
package(default_visibility = ["//visibility:public"])
cc_library(
name = "hello",
srcs = ["libhello.c"],
hdrs = ["libhello.h"],
)
cc_binary(
name = "main.exe",
linkstatic = 0,
srcs = ["main.c"],
deps = [":hello"],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment