Put this in foo.c:

-----
include <stdio.h>
#include <stdarg.h>

static void foo(const char *fmt, ...)
{
        va_list list;
        va_start(list, fmt);
        vprintf(fmt, list);
        va_end(fmt);
}

int main()
{
        foo("%s %s\n", "hello", "world");
}
-----

Then try

icc foo.c -o foo
./foo




> On Mar 12, 2015, at 6:49 PM, Fabricio Cannini <fcann...@gmail.com> wrote:
> 
> On 12-03-2015 18:23, Jeff Squyres (jsquyres) wrote:
>> Do you have the latest version of the Intel 12.x compiler installed?
> 
>> Are you able to compile/install any other C source code that uses varargs?
> 
> I'll try it now. Any easy-to-find code tha i can pick?
> Sorry but I know practically zero C. :(
> 
>> I ask because we've seen busted / buggy Intel compiler installs before.  It 
>> may be that you need to update to the latest version of the Intel 12.x 
>> compiler suite.
> 
> It's not the very latest according to this link, but it's pretty recent for 
> the series:
> https://software.intel.com/en-us/articles/intel-compiler-and-composer-update-version-numbers-to-compiler-version-number-mapping
> 
> [ ]'s
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post: 
> http://www.open-mpi.org/community/lists/users/2015/03/26457.php


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/

Reply via email to