This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=mex 2018.10.6) 25 JUL 2019 12:50 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **WeightedSum.c (./WeightedSum.c This is MeX Version 1.05 18 XII 1993 (B. Jackowski & M. Ry\'cko) ! You can't use `macro parameter character #' in vertical mode. l.1 # include "mex.h" ? y Type to proceed, S to scroll future error messages, R to run without stopping, Q to run quietly, I to insert something, E to edit your file, 1 or ... or 9 to ignore the next 1 to 9 tokens of input, H for help, X to quit. ? ! Interruption. i l.1 #i nclude "mex.h" ? ! Missing $ inserted. $ _ l.7 mwIndex* ir_ out, mwIndex* jc_out, double* outSimAtts) ? ! Missing $ inserted. $ \par l.9 ? ! Interruption. \par l.9 ? ! Missing } inserted. } $ \par l.9 ? ! Undefined control sequence. l.18 printf("starting weightedSum ...\n "); ? : Type to proceed, S to scroll future error messages, R to run without stopping, Q to run quietly, I to insert something, E to edit your file, 1 or ... or 9 to ignore the next 1 to 9 tokens of input, H for help, X to quit. ? :w Type to proceed, S to scroll future error messages, R to run without stopping, Q to run quietly, I to insert something, E to edit your file, 1 or ... or 9 to ignore the next 1 to 9 tokens of input, H for help, X to quit. ? :wq Type to proceed, S to scroll future error messages, R to run without stopping, Q to run quietly, I to insert something, E to edit your file, 1 or ... or 9 to ignore the next 1 to 9 tokens of input, H for help, X to quit. ? X No pages of output.