`start_test` causing strange error
Closed this issue · 2 comments
buddha314 commented
Main file in ../src/
use Chrest,
ChrestRouter;
config const API_HOST: string,
API_PORT: int;
proc main() {
var srv = new Chrest(API_HOST, API_PORT);
srv.Listen();
srv.Close();
}
And the test file in ../test/
use Apiyatollah,
Curl,
Spawn;
var sub = spawn(["..bin/apiyatollah"], stdout=PIPE);
produces this error
In file included from /var/folders/g5/4zwyfk513hd94tjs1fm5mdq00000gn/T//chpl-buddha-7252.deleteme/_main.c:2:
In file included from /var/folders/g5/4zwyfk513hd94tjs1fm5mdq00000gn/T//chpl-buddha-7252.deleteme/chpl__header.h:11:
/Users/buddha/github/buddha314/chrest/src/chrest.h:28:5: error: no previous prototype for function 'get_port_from_request' [-Werror,-Wmissing-prototypes]
int get_port_from_request(){
^
1 error generated.
buddha314 commented
Poop! Wrong repo!
marcoscleison commented
Dont worry.