Commit 88bf5322 authored by Claes Sjofors's avatar Claes Sjofors

Wb, error message when error from linker added

parent 923fdb05
......@@ -117,7 +117,7 @@ nothread <Invalid thread object> /error
invthread <Invalid thread object, plc will not be executed> /warning
generic <Generic object is not connected> /error
templateplc <Template plc not found> /error
ccerror <Error from c compilator, see terminal window> /fatal
ccerror <Error from c compiler or linker, see terminal window> /fatal
noconnect <PlcConnect object is missing> /error
refconnect <Error in PlcConnect object class> /error
conbackup <Backup connected to invalid attribute> /error
......
......@@ -306,7 +306,7 @@ void wb_build::node( char *nodename, void *volumelist, int volumecnt)
sumsts = m_sts;
}
if ( sumsts != PWRB__NOBUILT) {
if ( ODD(sumsts) && sumsts != PWRB__NOBUILT) {
char msg[200];
sprintf( msg, "Build: Node %s", nodename);
......
......@@ -5498,7 +5498,7 @@ int gcg_comp_rtnode(
unsigned long thread_count;
gcg_t_plcproclist *plcproclist;
unsigned long plcproc_count;
char text[80];
char text[400];
char nodename_low[80];
gcg_debug = debug;
......@@ -5771,7 +5771,12 @@ int gcg_comp_rtnode(
/* Create an object file */
sprintf( module_name, "%s%s_%4.4d_%s", gcgmn_filenames[0], nodename_low, bus,
cdh_Low(plcproclist[j].name));
gcg_cc( GCG_PROC, module_name, NULL, NULL, os, GCG_NOSPAWN);
sts = gcg_cc( GCG_PROC, module_name, NULL, NULL, os, GCG_NOSPAWN);
if ( EVEN(sts)) {
gcg_error_msg( 0, sts, 0);
(*errorcount)++;
return sts;
}
/* print module in option file */
if (IS_VMS_OR_ELN(os))
......@@ -5837,8 +5842,13 @@ int gcg_comp_rtnode(
nodename_low, bus, cdh_Low(plcproclist[j].name));
sprintf( fullfilename,"%s%s_%4.4d_%s", gcgmn_filenames[0], nodename_low, bus,
cdh_Low(plcproclist[j].name));
gcg_cc( GCG_RTNODE, fullfilename, plcfilename,
plclib_frozen, os, GCG_NOSPAWN);
sts = gcg_cc( GCG_RTNODE, fullfilename, plcfilename,
plclib_frozen, os, GCG_NOSPAWN);
if ( EVEN(sts)) {
gcg_error_msg( 0, sts, 0);
(*errorcount)++;
return sts;
}
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment