nikhilgupta10 / GridLAB-D

Other
1 stars 0 forks source link

#878 3.1 Climate module fails to compile on OSX (Non string arg from vararg in error message), #2604

Closed nikhilgupta10 closed 8 years ago

nikhilgupta10 commented 8 years ago

Compiling 3.1 (r4797) fails when compiling on OSX. It seems gcc has caught an error in formulating an error message string:

climate/climate.cpp:558:72: error: cannot pass object of non-POD type 'char1024' (aka 'charbuf<1025>') through variadic function; call will abort at runtime [-Wnon-pod-varargs] ...no csv_reader specified for tmyfile %s\, tmyfile);

Workaround: copying/merging in the trunk (r4806) climate.cpp file allows it to compile. In the trunk file this warning message has been replaced with (an attempt at?) simply opening a csv reader rather than throwing an error. ,

nikhilgupta10 commented 8 years ago

nikhilgupta10 imported these comments from Sourceforge: "dchassin":I thought these were all caught. The proper fix is to put (const char*) in front of the argument being passed. The next line of output indicated which is the offending parameter.,

"dchassin":- status: new --> assigned