|
From: | Bsaint |
Subject: | [Help-glpk] A beginner question |
Date: | Mon, 15 May 2006 17:25:11 -0400 |
Hi,
I just download glpk-4.9 today. I can run the command like ./glpsol
--model transp.mod --output transp.sol under \example
Then I want to write c code to solve the problem.
#include <stdio.h>
#include <stdlib.h> #include "glpk.h" int main(void) { LPX *lpx_read_model('transp.mod', NULL, NULL); } When I use gcc transp.c, it reports:
transp.c:1: error: syntax error before ':' token
May somebody tell me what's wrong here?
Best Regards Rong, Ying |
[Prev in Thread] | Current Thread | [Next in Thread] |