[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Only one data file allowed in GLPK
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] Only one data file allowed in GLPK |
Date: |
Tue, 30 Sep 2008 01:12:06 +0400 |
> AMPL allows multiple data files:
> http://www.ampl.com/SOLVERS/GUIDE.lpsolve.html
> "The model and one (or more) data files are fed into the AMPL program."
> Your example for "gcc.exe -E" did not work for me:
> C:\>"c:\MinGW\bin\gcc.exe" -E c:\temp\text.txt -o test1.txt
> gcc.exe: c:\temp\text.txt: linker input file unused because linking
> not done
For me it works fine :)
$ gcc -E -x c data
# 1 "data"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "data"
# 1 "today" 1
Today
# 2 "data" 2
# 1 "is" 1
is
# 3 "data" 2
# 1 "monday" 1
Monday
# 4 "data" 2
File 'data' contains the following:
#include "today"
#include "is"
#include "monday"
Btw, the preprocessor output goes to stdout, so the option '-o' is
not needed.