Following a post by Kornel Benko in lyx-users@lists.lyx.org there seems to be a typo in latex2rtf-2.3.12/main.c:368. This line reads:
} else if (gt_rtf_name = g_tex_name) {
but should be:
} else if (gt_rtf_name == g_tex_name) {
After inserting this patch I was able to make exporting to rtf work in LyX.
Anonymous
You are right. However when compiled for MS WIndows, "==" does not detect equality of g_rtf_name and g_tex_name. Fixed by changing to
} else if (strcmp(g_rtf_name, g_tex_name) == 0) {