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
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to