Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

Problem starting program (vcom) with multiple arguments in TCL -


i'm trying start program (vcom) tcl script options:

set compilationargs "-quiet -93" vcom $compilationargs -work work polar2rect/sc_corproc.vhd 

but when run this, following error message:

# model technology modelsim altera vcom 6.5e compiler 2010.02 feb 27 2010 # ** error: (vcom-1902) option "-quiet -93" either unknown, requires argument, or given bad argument. # use -help option complete vcom usage. # /opt/altera/10.0/modelsim_ase/linuxaloem/vcom failed. 

tcl seems pass 2 options (-quiet) , (-93) 1 option vcom. if use 1 of these 2 options works. , if run (vcom -93 -quiet -work work polar2rect/sc_corproc.vhd) works.

how can fix this?

thanks, hendrik.

the “problem” tcl's being careful managing spaces. useful if you've got arguments spaces in (such many full filenames on windows machines) can frustrating if wanted list broken automatically. fix indicate tcl is want split multiple words.

the best answer requires @ least tcl 8.5 (find out version you've got info tclversion, info patchlevel, or package require tcl).

vcom {*}$compilationargs -work work polar2rect/sc_corproc.vhd 

if you're built against older version of tcl, you'll need instead:

eval vcom $compilationargs -work work polar2rect/sc_corproc.vhd 

(or this, officiously correct, hardly bothers obvious reasons)

eval [list vcom] $compilationargs [list -work work polar2rect/sc_corproc.vhd] 

the version @ top expansion syntax ({*}) best if supported. can determine if enough; if isn't, it's syntax error.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -