For Programmers: Free Programming Magazines  


Home > Archive > Matlab > April 2005 > Matlab compiler: another problem with a simple file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Matlab compiler: another problem with a simple file
Pèval

2005-04-28, 9:00 am

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com