|
| Hi,
I read many posts about these problems, but i did't find a solution for
the mine.
I want to compile this simple file:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function doppio=perdue(n)
doppio=n*2;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I used
[color=darkred]
and I got a perdue.c file.
Then I tried to use
[color=darkred]
but I got errors, using LCC or Borland compiler.
These are the error messages:
=================LCC====================
======================[color=darkred]
main.obj .text: undefined reference to '_WinMain@16'
MBUILD.BAT: Error: Link of 'perdue.exe' failed.
??? Error using ==> mbuild
Unable to complete successfully
=================BORLAND================
=====================[color=darkred]
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_main' referenced from
C:\PROGRAMMI\BORLAND\BCC55\LIB\C0X32.OBJ
MBUILD.BAT: Error: Link of 'perdue.exe' failed.
??? Error using ==> mbuild
Unable to complete successfully
========================================
=====================
What can I do?
Thanks in advance,
Paolo Bocchini
--
Paolo Bocchini - Civil Engineer
Structural mechanics PhD student
Web: www.distart.ing.unibo.it
name.surname at mail.ing.unibo.it
|
|